Unsupported splitting criterion error in convert_lightgbm
See original GitHub issueHi
I am facing below error
ValueError: Unsupported splitting criterion: %s. Only <=, <, >=, and > are allowed.
while converting my LGBMClassifier model to ONNX.
Python - 3.7.1 installed through Anaconda on Mac
ONNX installed through conda install -y -c conda-forge onnx
onnxmltools & onnxruntime installed through pip
Any idea what is causing this error and how to resolve it?
Does sklearn API of lightgbm is not supported for converting to onnx?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
11.2 Splitting Criteria | Introduction to Data Science
The splitting criteria used by the regression tree and the classification tree are different. Like the regression tree, the goal of the classification...
Read more >Why does a regression tree not split based on variance?
I'm wondering why we don't divide each term by the number of points in each region, i.e. left and right of the split?...
Read more >Growing Decision Trees - MATLAB & Simulink - MathWorks
The algorithm splits MaxNumSplits nodes. Optimization criterion: Regression: mean-squared error (MSE). Choose a split to minimize the MSE of predictions ...
Read more >Splitting Criteria - SAS Help Center
The HPSPLIT procedure provides two types of criteria for splitting a parent node : criteria ... The entropy, Gini index, and RSS criteria...
Read more >Comparison of splitting methods on survival tree - PubMed
We compare splitting methods for constructing survival trees that are used as a model of survival time based on covariates. A number of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @vinitra & @xadupre
Even in Python 3.6, I am still facing the same error.
Actually in LightGBM there is an option to specify
categorical_feature
inLGBMClassifier.fit
and it handles those features in different manner. In my LGB Model I had passed one feature ascategorical_feature
, after removing that feature as categorical and retraining the lightgbm model, I was able to convert it into ONNX.Previously I had installed ONNX through PyPI and was facing the
AttributeError
as in below issue https://github.com/onnx/onnxmltools/issues/135 So as per the last comment in that issue, I uninstall ONNX and installed it back from conda and so that error vanished but I got this error.Anyways let me try to install onnx in python 3.6 and try again