Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 21, 2023
1 parent 31bcaf1 commit a0dd1b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/other_datasets/plot_financial_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def transform(self, X):
all_epochs = np.array(all_epochs)
return all_epochs


# Stackoverflow implementation [4]_
class NDStandardScaler(TransformerMixin):
def __init__(self, **kwargs):
Expand Down Expand Up @@ -275,7 +276,9 @@ def transform(self, X):
score_rf = rf.score(X_test, y_test)

# Print the results
print(f"(Train) Classical: {train_score_svm} \nQuantum: {train_score_qsvm} \nRF: {train_score_rf}")
print(
f"(Train) Classical: {train_score_svm} \nQuantum: {train_score_qsvm} \nRF: {train_score_rf}"
)
print(f"(Test) Classical: {score_svm} \nQuantum: {score_qsvm} \nRF: {score_rf}")


Expand Down

0 comments on commit a0dd1b8

Please sign in to comment.