add USERPATH_FREQAIMODELS, remove return values from @abstract methods
This commit is contained in:
parent
b03c7b514d
commit
b08c0888bb
@ -55,6 +55,7 @@ FTHYPT_FILEVERSION = 'fthypt_fileversion'
|
||||
USERPATH_HYPEROPTS = 'hyperopts'
|
||||
USERPATH_STRATEGIES = 'strategies'
|
||||
USERPATH_NOTEBOOKS = 'notebooks'
|
||||
USERPATH_FREQAIMODELS = 'freqaimodels'
|
||||
|
||||
TELEGRAM_SETTING_OPTIONS = ['on', 'off', 'silent']
|
||||
WEBHOOK_FORMAT_OPTIONS = ['form', 'json', 'raw']
|
||||
|
@ -110,8 +110,6 @@ class IFreqaiModel(ABC):
|
||||
:model: Trained model which can be used to inference (self.predict)
|
||||
"""
|
||||
|
||||
return Any
|
||||
|
||||
@abstractmethod
|
||||
def fit(self) -> Any:
|
||||
"""
|
||||
@ -123,8 +121,6 @@ class IFreqaiModel(ABC):
|
||||
all the training and test data/labels.
|
||||
"""
|
||||
|
||||
return Any
|
||||
|
||||
@abstractmethod
|
||||
def predict(self, dataframe: DataFrame) -> Tuple[np.array, np.array]:
|
||||
"""
|
||||
@ -136,8 +132,6 @@ class IFreqaiModel(ABC):
|
||||
data (NaNs) or felt uncertain about data (PCA and DI index)
|
||||
"""
|
||||
|
||||
return np.array([]), np.array([])
|
||||
|
||||
def model_exists(self, pair: str, training_timerange: str) -> bool:
|
||||
"""
|
||||
Given a pair and path, check if a model already exists
|
||||
|
Loading…
Reference in New Issue
Block a user