mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-13 02:48:07 +00:00
chore(Linter): reformatted code with black (#211)
* chore(Linter): reformatted code with black * Create black.yaml
This commit is contained in:
+2
-6
@@ -4,20 +4,16 @@ from .base import Model
|
||||
import numpy as np
|
||||
|
||||
|
||||
|
||||
def SKLearnModel(instance) -> Model:
|
||||
|
||||
instance.data_transformation = 'transformed'
|
||||
instance.data_transformation = "transformed"
|
||||
instance.only_column = None
|
||||
instance.predict_window_size = 'single_timestamp'
|
||||
instance.predict_window_size = "single_timestamp"
|
||||
instance.name = instance.__class__.__name__
|
||||
|
||||
return instance
|
||||
|
||||
|
||||
# def predict(self, X) -> tuple[float, np.ndarray]:
|
||||
# pred = self.model.predict(X).item()
|
||||
# probability = self.model.predict_proba(X).squeeze()
|
||||
# return (pred, probability)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user