Skip to content

Commit

Permalink
Update outdated examples
Browse files Browse the repository at this point in the history
These examples still used the `keep_analysis_log` hyperparameter.
  • Loading branch information
PGijsbers committed Jan 11, 2021
1 parent fdabba6 commit 356dc89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if __name__ == '__main__':
X, y = load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, stratify=y, random_state=0)

automl = GamaClassifier(max_total_time=180, keep_analysis_log=None)
automl = GamaClassifier(max_total_time=180, store="nothing")
print("Starting `fit` which will take roughly 3 minutes.")
automl.fit(X_train, y_train)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/advanced_guide/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The following script writes any log messages of `logging.DEBUG` or up to both fi
gama_log.addHandler(fh_log)

# The verbosity hyperparameter sets up an StreamHandler to `stdout`.
automl = GamaClassifier(max_total_time=180, verbosity=logging.DEBUG, keep_analysis_log=None)
automl = GamaClassifier(max_total_time=180, verbosity=logging.DEBUG, store="nothing")

Running the above script will create the 'logfile.txt' file with all log messages that could also be seen in the console.
An overview the log levels:
Expand Down

0 comments on commit 356dc89

Please sign in to comment.