-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed OrdinalEncoder conversion. Now the type of keys for ONNX Labe…
…lEncoder is determined by the type of input variable, and not by the type of categories in OrdinalEncoder - Fixed FunctionTransformer converter. Added axis to Concat operator - Fixed Imputer shapes calculator. Now number of inputs can be >1 - Fixed SklearnMultiply converter. Now initializer type is equal to input type - Fixed Pipeline converter. Now Cast operator applies if pipeline outputs are different with last stage outputs - Changed VotingClassifier and VotingRegressor converter. Now VotingClassifier can accept number of inputs >1
- Loading branch information
Showing
14 changed files
with
161 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
import copy | ||
|
||
from ..common._registration import register_shape_calculator | ||
|
||
|
||
def calculate_sklearn_multiply(operator): | ||
for variable, output in zip(operator.inputs, operator.outputs): | ||
output.type = copy.copy(variable.type) | ||
|
||
|
||
register_shape_calculator("SklearnMultiply", calculate_sklearn_multiply) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from ..common._registration import register_shape_calculator | ||
from ..common.shape_calculator import _calculate_linear_classifier_output_shapes | ||
from ..common.utils import check_input_and_output_numbers | ||
from ..common.shape_calculator import _infer_linear_classifier_output_types | ||
|
||
|
||
def voting_classifier_shape_calculator(operator): | ||
return _calculate_linear_classifier_output_shapes( | ||
operator, enable_type_checking=False | ||
) | ||
check_input_and_output_numbers(operator, output_count_range=2) | ||
|
||
_infer_linear_classifier_output_types(operator) | ||
|
||
|
||
register_shape_calculator("SklearnVotingClassifier", voting_classifier_shape_calculator) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.