Garve / mamimo

A package to compute a marketing mix model.
70 stars 12 forks source link

Fixed typo in _OneToOneFeatureMixin #7

Closed amanabdullayev closed 1 year ago

amanabdullayev commented 1 year ago

Importing several sklearn functions were failing due to typo in _OneToOneFeatureMixin, which is currently OneToOneFeatureMixin (without the underscore) in sklearn.

larun1916 commented 1 year ago

Is it fixed? Can it be used?

amanabdullayev commented 1 year ago

@larun1916, I have fixed it but waiting for @Garve to merge the fix. Once it is merged then you can use it. but if you want to use it ASAP you can follow the steps:

sys.path.append( "{{path to your local repo}}" )


then you can import mamimo as usual and use it, e.g.

import pandas as pd from mamimo.carryover import ExponentialCarryover from mamimo.saturation import ExponentialSaturation from mamimo.linear_model import LinearRegression from mamimo.analysis import breakdown from mamimo.time_utils import PowerTrend from sklearn.compose import ColumnTransformer from sklearn.pipeline import Pipeline from sklearn.preprocessing import OneHotEncoder import matplotlib.pyplot as plt