cobra
cobra copied to clipboard
A Python package to build predictive linear and logistic regression models focused on performance and interpretation
Before release, refactor the code so it has the same formatting using Black (https://github.com/psf/black) Afterwards, we can add Black checks part of the CI pipeline and enforce code quality
Currently, we test whether instance has been fitted based on two attributes: https://github.com/PythonPredictions/cobra/blob/474650f1ba3f36aa87f3fd7e77724a10d5484401/cobra/preprocessing/categorical_data_processor.py#L248-L252 However, this will break if there is for example just one categorical variable and it has been...
We had a use case at Argenta, where we worked with table of about 300 cols and ~2 mil. of rows. There, the preprocessing took a lot of time and...
Congrats with the release of this package! I thought I'd contribute back a little with this issue. The [TargetEncoder](https://github.com/PythonPredictions/cobra/blob/master/cobra/preprocessing/target_encoder.py) strikes me as a dangerous transformation. While the docstring does openly...
# Bug Report ## Description It seems that after deserialization the `_is_fitted` attribute of the `LinearRegressionModel` object is set to false, even if the model that was serialized already had...
# Add continuous and discrete variables as attributes to the Preprocessor **Problem:** Currently we have to pass continuous and discrete variable names to the `fit` and `transform` functions of the...
Since not all of the features will need the same amount of bins, we should support for example a dictionary in which the n_bins for every feature is mentioned. Not...
When the thresholds are so low that none of the features are selected, it raises an error : `min() arg cannot be empty`, which makes sense, but is not easy...
compute_univariate_preselection automatically choses the metric according to the type of model: Classification: AUC Regression: RMSE We could add the possibility to let end users give their own scoring function as...
# Linking to the material of past cases we often present ## Task Description We sometimes present past industry cases we solved with Cobra. At least for the most popular...