mtreinish / ciml

a machine learning pipeline for analyzing CI results.
Apache License 2.0
5 stars 4 forks source link

tf.logging #58

Closed jlousada315 closed 4 years ago

jlousada315 commented 4 years ago

Hi,

f.logging.set_verbosity(tf.logging.INFO) AttributeError: module 'tensorflow' has no attribute 'logging'

This attribute seems to be deprecated in the files: nn_trainer.py , svm_trainer.py and tf_trainer.py.

To fix this I replaced it for: tf.compat.v1.logging.set_verbosity(tf.compat.v1.slogging.INFO)

and it worked.

Based on this thread: https://stackoverflow.com/questions/55318626/module-tensorflow-has-no-attribute-logging

afrittoli commented 4 years ago

Thank you for looking into this! Did you run with the version of tensorflow from the requirements.txt? I believe the code should still work with that version, but we can update it nonetheless. Feel free also to propose a PR, since you did the investigation work already ^_^

jlousada315 commented 4 years ago

Hi, I can attach the corrected version of gather_results.py that fixes this issue or should I commit it ?

jlousada315 commented 4 years ago

Pull Request sent!

kwulffert commented 4 years ago

Thank you João for the PR. It has been merged. I'm closing this issue.