adimajo / glmdisc_python Goto Github PK
View Code? Open in Web Editor NEWglmdisc Python package: discretization, factor level grouping, interaction discovery for logistic regression
License: GNU General Public License v3.0
glmdisc Python package: discretization, factor level grouping, interaction discovery for logistic regression
License: GNU General Public License v3.0
This lib is outdated, the method generate_X_grid has changed. For this reason is not possible to use this lib.
dswah/pyGAM#214.
Can you fix this? Thank you.
ValueError Traceback (most recent call last)
in
1 import numpy as np
----> 2 fit(disc,predictors_cont=X.values,labels=Y.values,predictors_qual=None)
in fit(self, predictors_cont, predictors_qual, labels)
190 X=current_encoder_emap.transform(
191 emap[train, :].astype(str))),
--> 192 normalize=False)
193 set_trace()
194 if self.validation:
c:\python37\lib\site-packages\sklearn\metrics\classification.py in log_loss(y_true, y_pred, eps, normalize, sample_weight, labels)
2119 """
2120 y_pred = check_array(y_pred, ensure_2d=False)
-> 2121 check_consistent_length(y_pred, y_true, sample_weight)
2122
2123 lb = LabelBinarizer()
c:\python37\lib\site-packages\sklearn\utils\validation.py in check_consistent_length(*arrays)
203 if len(uniques) > 1:
204 raise ValueError("Found input variables with inconsistent numbers of"
--> 205 " samples: %r" % [int(l) for l in lengths])
206
207
ValueError: Found input variables with inconsistent numbers of samples: [45, 75]
when you planning to share code?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.