KNeighborsRegressor - m-reg - weights_k3 - cdist#

Fitted on a problem type m-reg (see find_suitable_problem), method predict matches output . Model was converted with additional parameter: <class 'sklearn.neighbors._regression.KNeighborsRegressor'>={'optim': 'cdist'}.

KNeighborsRegressor(algorithm='brute', n_jobs=8, n_neighbors=3,
                weights='distance')

index

0

skl_nop

1

onx_size

4575

onx_nnodes

21

onx_ninits

9

onx_doc_string

onx_ir_version

8

onx_domain

ai.onnx

onx_model_version

0

onx_producer_name

skl2onnx

onx_producer_version

1.11.1

onx_

15

onx_ai.onnx.ml

1

onx_com.microsoft

1

onx_op_Cast

1

onx_op_Reshape

2

onx_size_optim

4575

onx_nnodes_optim

21

onx_ninits_optim

9

fit__fit_X.shape

(112, 4)

%0 X X float((0, 4)) CD_CDist CDist (CD_CDist) metric=b'euclidean' X->CD_CDist variable variable float((0, 2)) knny_ArrayFeatureExtractorcst knny_ArrayFeatureExtractorcst float32((2, 112)) [[0.04 0.32 3.42 1.85 1.86 0.16 0.1  1.81 3.33 3.3... knny_ArrayFeatureExtractor ArrayFeatureExtractor (knny_ArrayFeatureExtractor) knny_ArrayFeatureExtractorcst->knny_ArrayFeatureExtractor CD_CDistcst CD_CDistcst float32((112, 4)) [[ 4.3017502e+00  3.9453187e+00  9.2195314e-01  1.... CD_CDistcst->CD_CDist To_TopKcst To_TopKcst int64((1,)) [3] To_TopK TopK (To_TopK) largest=0 sorted=1 To_TopKcst->To_TopK knny_Reshapecst knny_Reshapecst int64((3,)) [ 2 -1  3] knny_Reshape Reshape (knny_Reshape) allowzero=0 knny_Reshapecst->knny_Reshape wei_Mulcst wei_Mulcst float32((1,)) [-1.] wei_Mul Mul (wei_Mul) wei_Mulcst->wei_Mul wei_Maxcst wei_Maxcst float32((1,)) [1.e-06] wei_Max Max (wei_Max) wei_Maxcst->wei_Max Re_ReduceSumcst Re_ReduceSumcst int64((1,)) [2] Re_ReduceSum ReduceSum (Re_ReduceSum) keepdims=0 Re_ReduceSumcst->Re_ReduceSum norm_ReduceSumcst norm_ReduceSumcst int64((1,)) [1] norm_ReduceSum ReduceSum (norm_ReduceSum) keepdims=0 norm_ReduceSumcst->norm_ReduceSum Re_Reshapecst Re_Reshapecst int64((2,)) [-1  1] Re_Reshape Reshape (Re_Reshape) allowzero=0 Re_Reshapecst->Re_Reshape CD_dist CD_dist CD_dist->To_TopK CD_CDist->CD_dist To_Values0 To_Values0 To_Values0->wei_Mul To_Indices1 To_Indices1 knny_Flatten Flatten (knny_Flatten) To_Indices1->knny_Flatten To_TopK->To_Values0 To_TopK->To_Indices1 knny_output0 knny_output0 knny_output0->knny_ArrayFeatureExtractor knny_Flatten->knny_output0 wei_C0 wei_C0 wei_C0->wei_Max wei_Mul->wei_C0 knny_Z0 knny_Z0 knny_Z0->knny_Reshape knny_ArrayFeatureExtractor->knny_Z0 wei_max0 wei_max0 wei_Reciprocal Reciprocal (wei_Reciprocal) wei_max0->wei_Reciprocal wei_Max->wei_max0 wei_Y0 wei_Y0 wei_Y0->norm_ReduceSum Mu_Mul Mul (Mu_Mul) wei_Y0->Mu_Mul wei_Reciprocal->wei_Y0 knny_reshaped0 knny_reshaped0 knny_Transpose Transpose (knny_Transpose) perm=[1 0 2] knny_reshaped0->knny_Transpose knny_Reshape->knny_reshaped0 knny_transposed0 knny_transposed0 Ca_Cast Cast (Ca_Cast) to=1 knny_transposed0->Ca_Cast knny_Transpose->knny_transposed0 norm_reduced0 norm_reduced0 norm_reduced0->Re_Reshape norm_ReduceSum->norm_reduced0 Ca_output0 Ca_output0 Tr_Transpose Transpose (Tr_Transpose) perm=[1 0 2] Ca_output0->Tr_Transpose Ca_Cast->Ca_output0 Re_reshaped0 Re_reshaped0 Di_Div Div (Di_Div) Re_reshaped0->Di_Div Re_Reshape->Re_reshaped0 Tr_transposed01 Tr_transposed01 Tr_transposed01->Mu_Mul Tr_Transpose->Tr_transposed01 Mu_C0 Mu_C0 Tr_Transpose1 Transpose (Tr_Transpose1) perm=[1 0 2] Mu_C0->Tr_Transpose1 Mu_Mul->Mu_C0 Tr_transposed0 Tr_transposed0 Sh_Shape Shape (Sh_Shape) Tr_transposed0->Sh_Shape Is_IsNaN IsNaN (Is_IsNaN) Tr_transposed0->Is_IsNaN Wh_Where Where (Wh_Where) Tr_transposed0->Wh_Where Tr_Transpose1->Tr_transposed0 Sh_shape0 Sh_shape0 Co_ConstantOfShape ConstantOfShape (Co_ConstantOfShape) Sh_shape0->Co_ConstantOfShape Sh_Shape->Sh_shape0 Is_Y0 Is_Y0 Is_Y0->Wh_Where Is_IsNaN->Is_Y0 Co_output0 Co_output0 Co_output0->Wh_Where Co_ConstantOfShape->Co_output0 Wh_output0 Wh_output0 Wh_output0->Re_ReduceSum Wh_Where->Wh_output0 Re_reduced0 Re_reduced0 Re_reduced0->Di_Div Re_ReduceSum->Re_reduced0 Di_Div->variable