Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
v1docq committed May 2, 2024
1 parent a9d4244 commit 2875026
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'logging_level': 10,
'n_jobs': 2,
'early_stopping_iterations': 5,
'initial_assumption': PipelineBuilder().add_node('chronos_extractor').add_node('logit'),
'initial_assumption': PipelineBuilder().add_node('quantile_extractor').add_node('logit'),
'early_stopping_timeout': 75}

if __name__ == "__main__":
Expand Down
8 changes: 4 additions & 4 deletions fedot_ind/core/metrics/metrics_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ def metric(self) -> float:
return accuracy_score(y_true=self.target, y_pred=self.predicted_labels)


def MASE(A, F, y_train):
def mase(A, F, y_train):
return mean_absolute_scaled_error(A, F, y_train=y_train)


def SMAPE(a, f, _=None):
def smape(a, f, _=None):
return 1 / len(a) * np.sum(2 * np.abs(f - a) / (np.abs(a) + np.abs(f)) * 100)


Expand Down Expand Up @@ -221,8 +221,8 @@ def rmse(y_true, y_pred):
'rmse': rmse,
'mae': mean_absolute_error,
'median_absolute_error': median_absolute_error,
'smape': SMAPE,
'mase': MASE
'smape': smape,
'mase': mase
}

df = pd.DataFrame({name: func(target, labels) for name, func in metric_dict.items()
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ fastai==2.7.14
distributed
datasetsforecast==0.0.8
tensorly==0.8.1
torch==2.2.0
torch~=2.2.0
torchvision~=0.13.1+cu113
torchvision==0.17.0
statsforecast==1.5.0
chardet==5.2.0
Expand Down

0 comments on commit 2875026

Please sign in to comment.