Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
import pandas as pd
class Model:
def fit(self, data):
# Estimate the model’s parameters
self.alpha = 0.42
self.beta = -0.24
def predict(self, data):
# Make predictions using the estimated parameters
score = self.alpha * data['deposit'] + self.beta * data['withdrawal']
return pd.DataFrame(dict(label=score > 0))