.. _l-LocalOutlierFactor-outlier-novelty--o17: LocalOutlierFactor - outlier - novelty - ========================================= Fitted on a problem type *outlier* (see :func:`find_suitable_problem `), method `predict` matches output . :: LocalOutlierFactor(n_jobs=8, novelty=True) +------------------------------------+----------+ | index | 0 | +====================================+==========+ | skl_nop | 1 | +------------------------------------+----------+ | onx_size | 13725 | +------------------------------------+----------+ | onx_nnodes | 26 | +------------------------------------+----------+ | onx_ninits | 13 | +------------------------------------+----------+ | onx_doc_string | | +------------------------------------+----------+ | onx_ir_version | 8 | +------------------------------------+----------+ | onx_domain | ai.onnx | +------------------------------------+----------+ | onx_model_version | 0 | +------------------------------------+----------+ | onx_producer_name | skl2onnx | +------------------------------------+----------+ | onx_producer_version | 1.13.1 | +------------------------------------+----------+ | onx_ | 17 | +------------------------------------+----------+ | onx_op_Cast | 1 | +------------------------------------+----------+ | onx_subgraphs | 1 | +------------------------------------+----------+ | onx_op_Identity | 2 | +------------------------------------+----------+ | onx_op_Identity_optim | 1 | +------------------------------------+----------+ | onx_subgraphs_optim | 1 | +------------------------------------+----------+ | onx_size_optim | 13648 | +------------------------------------+----------+ | onx_nnodes_optim | 25 | +------------------------------------+----------+ | onx_ninits_optim | 13 | +------------------------------------+----------+ | fit__fit_X.shape | (112, 4) | +------------------------------------+----------+ | fit_negative_outlier_factor_.shape | 112 | +------------------------------------+----------+ .. gdot:: digraph{ size=7; ranksep=0.25; nodesep=0.05; orientation=portrait; X [shape=box color=red label="X\nfloat((0, 4))" fontsize=10]; label [shape=box color=green label="label\nint64((0, 1))" fontsize=10]; scores [shape=box color=green label="scores\nfloat((0, 1))" fontsize=10]; lrd_ratios_array_Gathercst [shape=box label="lrd_ratios_array_Gathercst\nfloat32((112,))\n[0.8522393 1.0029942 1.0569987 1.0504786 1.055..." fontsize=10]; Sc_Scancst [shape=box label="Sc_Scancst\nfloat32((112, 4))\n[[ 4.3017502e+00 3.9453187e+00 9.2195314e-01 1...." fontsize=10]; To_TopKcst [shape=box label="To_TopKcst\nint64((1,))\n[20]" fontsize=10]; X_lrd_Divcst [shape=box label="X_lrd_Divcst\nfloat32((1,))\n[1.]" fontsize=10]; X_lrd_Mulcst [shape=box label="X_lrd_Mulcst\nfloat32((1,))\n[-1.]" fontsize=10]; dist_k_Gathercst [shape=box label="dist_k_Gathercst\nfloat32((112, 20))\n[[0.33936003 0.6148214 0.86842823 ... 1.3690411 ..." fontsize=10]; dist_k_Gathercst1 [shape=box label="dist_k_Gathercst1\nint64((1,))\n[19]" fontsize=10]; dist_k_Squeezecst [shape=box label="dist_k_Squeezecst\nint64((1,))\n[2]" fontsize=10]; X_lrd_Addcst [shape=box label="X_lrd_Addcst\nfloat32((1,))\n[1.e-10]" fontsize=10]; predict_Addcst [shape=box label="predict_Addcst\nfloat32((1,))\n[1.5]" fontsize=10]; predict_Lesscst [shape=box label="predict_Lesscst\nfloat32((1,))\n[0.]" fontsize=10]; predict_Mulcst1 [shape=box label="predict_Mulcst1\nint64((1,))\n[-2]" fontsize=10]; predict_Addcst1 [shape=box label="predict_Addcst1\nint64((1,))\n[1]" fontsize=10]; UU038UU [shape=box label="UU038UU" fontsize=10]; UU039UU [shape=box label="UU039UU" fontsize=10]; subgraph cluster_Scan139908139445984_139908381009904 { label="Scan\n(Sc_Scan)\nbody=node {\n input: 'next_in'...\nnum_scan_inputs=1"; fontsize=10; color=black; B_next_in [shape=box color=red label="next_in\nfloat((0, 4))" fontsize=10]; B_next [shape=box color=red label="next\nfloat((0,))" fontsize=10]; B_next_out [shape=box color=green label="next_out\nfloat((0, 0))" fontsize=10]; B_scan_out [shape=box color=green label="scan_out\nfloat((0,))" fontsize=10]; B_cdistdf_20_C0 [shape=box label="cdistdf_20_C0" fontsize=10]; B_cdistdf_20_Sub [shape=box style="filled,rounded" color=orange label="Sub\n(cdistdf_20_Sub)" fontsize=10]; B_next_in -> B_cdistdf_20_Sub; B_next -> B_cdistdf_20_Sub; B_cdistdf_20_Sub -> B_cdistdf_20_C0; B_cdistd_20_Identity [shape=box style="filled,rounded" color=orange label="Identity\n(cdistd_20_Identity)" fontsize=10]; B_next_in -> B_cdistd_20_Identity; B_cdistd_20_Identity -> B_next_out; B_cdistdf_20_reduced0 [shape=box label="cdistdf_20_reduced0" fontsize=10]; B_cdistdf_20_ReduceSumSquare [shape=box style="filled,rounded" color=orange label="ReduceSumSquare\n(cdistdf_20_ReduceSumSquare)\naxes=[1]\nkeepdims=0" fontsize=10]; B_cdistdf_20_C0 -> B_cdistdf_20_ReduceSumSquare; B_cdistdf_20_ReduceSumSquare -> B_cdistdf_20_reduced0; B_cdistdf_20_Identity [shape=box style="filled,rounded" color=orange label="Identity\n(cdistdf_20_Identity)" fontsize=10]; B_cdistdf_20_reduced0 -> B_cdistdf_20_Identity; B_cdistdf_20_Identity -> B_scan_out; } X -> B_next_in; Sc_Scancst -> B_next; B_next_out -> UU038UU; B_scan_out -> UU039UU; Sc_Scan -> B_cdistdf_20_Sub [lhead=cluster_Scan139908139445984_139908381009904]; X -> Sc_Scan; Sc_Scancst -> Sc_Scan; Sc_Scan -> UU038UU; Sc_Scan -> UU039UU; Tr_transposed0 [shape=box label="Tr_transposed0" fontsize=10]; Tr_Transpose [shape=box style="filled,rounded" color=orange label="Transpose\n(Tr_Transpose)\nperm=[1 0]" fontsize=10]; UU039UU -> Tr_Transpose; Tr_Transpose -> Tr_transposed0; Sq_Y0 [shape=box label="Sq_Y0" fontsize=10]; Sq_Sqrt [shape=box style="filled,rounded" color=orange label="Sqrt\n(Sq_Sqrt)" fontsize=10]; Tr_transposed0 -> Sq_Sqrt; Sq_Sqrt -> Sq_Y0; To_Values0 [shape=box label="To_Values0" fontsize=10]; To_Indices1 [shape=box label="To_Indices1" fontsize=10]; To_TopK [shape=box style="filled,rounded" color=orange label="TopK\n(To_TopK)\nlargest=0\nsorted=1" fontsize=10]; Sq_Y0 -> To_TopK; To_TopKcst -> To_TopK; To_TopK -> To_Values0; To_TopK -> To_Indices1; lrd_ratios_array_output0 [shape=box label="lrd_ratios_array_output0" fontsize=10]; lrd_ratios_array_Gather [shape=box style="filled,rounded" color=orange label="Gather\n(lrd_ratios_array_Gather)" fontsize=10]; lrd_ratios_array_Gathercst -> lrd_ratios_array_Gather; To_Indices1 -> lrd_ratios_array_Gather; lrd_ratios_array_Gather -> lrd_ratios_array_output0; X_lrd_C03 [shape=box label="X_lrd_C03" fontsize=10]; X_lrd_Mul [shape=box style="filled,rounded" color=orange label="Mul\n(X_lrd_Mul)" fontsize=10]; To_Values0 -> X_lrd_Mul; X_lrd_Mulcst -> X_lrd_Mul; X_lrd_Mul -> X_lrd_C03; dist_k_output01 [shape=box label="dist_k_output01" fontsize=10]; dist_k_Gather [shape=box style="filled,rounded" color=orange label="Gather\n(dist_k_Gather)" fontsize=10]; dist_k_Gathercst -> dist_k_Gather; To_Indices1 -> dist_k_Gather; dist_k_Gather -> dist_k_output01; X_lrd_C02 [shape=box label="X_lrd_C02" fontsize=10]; X_lrd_Mul1 [shape=box style="filled,rounded" color=orange label="Mul\n(X_lrd_Mul1)" fontsize=10]; X_lrd_C03 -> X_lrd_Mul1; X_lrd_Mulcst -> X_lrd_Mul1; X_lrd_Mul1 -> X_lrd_C02; dist_k_output0 [shape=box label="dist_k_output0" fontsize=10]; dist_k_Gather1 [shape=box style="filled,rounded" color=orange label="Gather\n(dist_k_Gather1)\naxis=2" fontsize=10]; dist_k_output01 -> dist_k_Gather1; dist_k_Gathercst1 -> dist_k_Gather1; dist_k_Gather1 -> dist_k_output0; dist_k_squeezed0 [shape=box label="dist_k_squeezed0" fontsize=10]; dist_k_Squeeze [shape=box style="filled,rounded" color=orange label="Squeeze\n(dist_k_Squeeze)" fontsize=10]; dist_k_output0 -> dist_k_Squeeze; dist_k_Squeezecst -> dist_k_Squeeze; dist_k_Squeeze -> dist_k_squeezed0; X_lrd_max0 [shape=box label="X_lrd_max0" fontsize=10]; X_lrd_Max [shape=box style="filled,rounded" color=orange label="Max\n(X_lrd_Max)" fontsize=10]; X_lrd_C02 -> X_lrd_Max; dist_k_squeezed0 -> X_lrd_Max; X_lrd_Max -> X_lrd_max0; X_lrd_reduced0 [shape=box label="X_lrd_reduced0" fontsize=10]; X_lrd_ReduceMean [shape=box style="filled,rounded" color=orange label="ReduceMean\n(X_lrd_ReduceMean)\naxes=[1]\nkeepdims=1" fontsize=10]; X_lrd_max0 -> X_lrd_ReduceMean; X_lrd_ReduceMean -> X_lrd_reduced0; X_lrd_C01 [shape=box label="X_lrd_C01" fontsize=10]; X_lrd_Add [shape=box style="filled,rounded" color=orange label="Add\n(X_lrd_Add)" fontsize=10]; X_lrd_reduced0 -> X_lrd_Add; X_lrd_Addcst -> X_lrd_Add; X_lrd_Add -> X_lrd_C01; X_lrd_C0 [shape=box label="X_lrd_C0" fontsize=10]; X_lrd_Div [shape=box style="filled,rounded" color=orange label="Div\n(X_lrd_Div)" fontsize=10]; X_lrd_Divcst -> X_lrd_Div; X_lrd_C01 -> X_lrd_Div; X_lrd_Div -> X_lrd_C0; lrd_ratios_array_C0 [shape=box label="lrd_ratios_array_C0" fontsize=10]; lrd_ratios_array_Div [shape=box style="filled,rounded" color=orange label="Div\n(lrd_ratios_array_Div)" fontsize=10]; lrd_ratios_array_output0 -> lrd_ratios_array_Div; X_lrd_C0 -> lrd_ratios_array_Div; lrd_ratios_array_Div -> lrd_ratios_array_C0; score_samples_reduced0 [shape=box label="score_samples_reduced0" fontsize=10]; score_samples_ReduceMean [shape=box style="filled,rounded" color=orange label="ReduceMean\n(score_samples_ReduceMean)\naxes=[1]\nkeepdims=1" fontsize=10]; lrd_ratios_array_C0 -> score_samples_ReduceMean; score_samples_ReduceMean -> score_samples_reduced0; predict_C02 [shape=box label="predict_C02" fontsize=10]; predict_Mul [shape=box style="filled,rounded" color=orange label="Mul\n(predict_Mul)" fontsize=10]; score_samples_reduced0 -> predict_Mul; X_lrd_Mulcst -> predict_Mul; predict_Mul -> predict_C02; predict_Add [shape=box style="filled,rounded" color=orange label="Add\n(predict_Add)" fontsize=10]; predict_C02 -> predict_Add; predict_Addcst -> predict_Add; predict_Add -> scores; predict_C01 [shape=box label="predict_C01" fontsize=10]; predict_Less [shape=box style="filled,rounded" color=orange label="Less\n(predict_Less)" fontsize=10]; scores -> predict_Less; predict_Lesscst -> predict_Less; predict_Less -> predict_C01; predict_output0 [shape=box label="predict_output0" fontsize=10]; predict_Cast [shape=box style="filled,rounded" color=orange label="Cast\n(predict_Cast)\nto=7" fontsize=10]; predict_C01 -> predict_Cast; predict_Cast -> predict_output0; predict_C0 [shape=box label="predict_C0" fontsize=10]; predict_Mul1 [shape=box style="filled,rounded" color=orange label="Mul\n(predict_Mul1)" fontsize=10]; predict_output0 -> predict_Mul1; predict_Mulcst1 -> predict_Mul1; predict_Mul1 -> predict_C0; predict_Add1 [shape=box style="filled,rounded" color=orange label="Add\n(predict_Add1)" fontsize=10]; predict_C0 -> predict_Add1; predict_Addcst1 -> predict_Add1; predict_Add1 -> label; }