Browse Source

Update custom_model.py

pull/1/head
Alexey Velikiy 6 years ago committed by GitHub
parent
commit
edcf487479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      analytics/models/custom_model.py

9
analytics/models/custom_model.py

@ -3,15 +3,8 @@ import utils
import pandas as pd
from typing import Optional
# Paste your model here:
class CustomModel(Model):
def __init__(self):
super()
# Use self.state to store results of your learning
# It will be saved in filesystem and loaded after server restart
self.state = {}
class CustomModel(Model):
def fit(self, dataframe: pd.DataFrame, segments: list, cache: Optional[dict]) -> dict:
pass

Loading…
Cancel
Save