Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 374 Bytes
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))
You can’t perform that action at this time.