add USERPATH_FREQAIMODELS, remove return values from @abstract methods

This commit is contained in:
robcaulk 2022-05-06 13:35:01 +02:00
parent b03c7b514d
commit b08c0888bb
2 changed files with 1 additions and 6 deletions

View File

@ -55,6 +55,7 @@ FTHYPT_FILEVERSION = 'fthypt_fileversion'
USERPATH_HYPEROPTS = 'hyperopts' USERPATH_HYPEROPTS = 'hyperopts'
USERPATH_STRATEGIES = 'strategies' USERPATH_STRATEGIES = 'strategies'
USERPATH_NOTEBOOKS = 'notebooks' USERPATH_NOTEBOOKS = 'notebooks'
USERPATH_FREQAIMODELS = 'freqaimodels'
TELEGRAM_SETTING_OPTIONS = ['on', 'off', 'silent'] TELEGRAM_SETTING_OPTIONS = ['on', 'off', 'silent']
WEBHOOK_FORMAT_OPTIONS = ['form', 'json', 'raw'] WEBHOOK_FORMAT_OPTIONS = ['form', 'json', 'raw']

View File

@ -110,8 +110,6 @@ class IFreqaiModel(ABC):
:model: Trained model which can be used to inference (self.predict) :model: Trained model which can be used to inference (self.predict)
""" """
return Any
@abstractmethod @abstractmethod
def fit(self) -> Any: def fit(self) -> Any:
""" """
@ -123,8 +121,6 @@ class IFreqaiModel(ABC):
all the training and test data/labels. all the training and test data/labels.
""" """
return Any
@abstractmethod @abstractmethod
def predict(self, dataframe: DataFrame) -> Tuple[np.array, np.array]: 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) 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: def model_exists(self, pair: str, training_timerange: str) -> bool:
""" """
Given a pair and path, check if a model already exists Given a pair and path, check if a model already exists