mirror of
https://github.com/clearml/clearml
synced 2025-01-31 00:56:57 +00:00
Flake8
This commit is contained in:
parent
a7b5890028
commit
d8ca5c73c4
@ -94,7 +94,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
return str(self) == str(other)
|
||||
|
||||
def __repr__(self):
|
||||
return f"TaskTypes.{self.value}"
|
||||
return "TaskTypes.{}".format(self.value)
|
||||
|
||||
training = 'training'
|
||||
testing = 'testing'
|
||||
@ -116,7 +116,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
return str(self) == str(other)
|
||||
|
||||
def __repr__(self):
|
||||
return f"TaskTypes.{self.value}"
|
||||
return "TaskTypes.{}".format(self.value)
|
||||
|
||||
created = "created"
|
||||
queued = "queued"
|
||||
|
6
clearml/external/kerastuner.py
vendored
6
clearml/external/kerastuner.py
vendored
@ -1,12 +1,10 @@
|
||||
from typing import Optional
|
||||
from logging import getLogger
|
||||
from ..task import Task
|
||||
|
||||
_logger = getLogger("clearml.external.kerastuner")
|
||||
|
||||
|
||||
from ..task import Task
|
||||
|
||||
|
||||
try:
|
||||
import pandas as pd
|
||||
except ImportError:
|
||||
@ -119,4 +117,4 @@ else:
|
||||
summary = pd.concat([summary, pd.DataFrame(trial_dict, index=[trial.trial_id])], ignore_index=True)
|
||||
summary.index.name = "trial id"
|
||||
summary = summary[["trial id", *sorted(summary.columns[1:])]]
|
||||
self.task.get_logger().report_table("summary", "trial", 0, table_plot=summary)
|
||||
self.task.get_logger().report_table("summary", "trial", 0, table_plot=summary)
|
||||
|
@ -180,8 +180,8 @@ class Task(_Task):
|
||||
__detect_repo_async = deferred_config('development.vcs_repo_detect_async', False)
|
||||
__default_output_uri = DEV_DEFAULT_OUTPUT_URI.get() or deferred_config('development.default_output_uri', None)
|
||||
|
||||
__hidden_tag = "hidden"
|
||||
|
||||
__hidden_tag = "hidden"
|
||||
|
||||
_launch_multi_node_section = "launch_multi_node"
|
||||
_launch_multi_node_instance_tag = "multi_node_instance"
|
||||
|
||||
|
@ -3,6 +3,7 @@ clearml>=1.14.4
|
||||
matplotlib >= 3.1.1 ; python_version >= '3.6'
|
||||
matplotlib >= 2.2.4 ; python_version < '3.6'
|
||||
numpy != 1.24.0 # https://github.com/numpy/numpy/issues/22826
|
||||
bokeh_sampledata==2024.2 ; python_version >= '3.10'
|
||||
pandas
|
||||
pillow>=4.0
|
||||
plotly
|
||||
|
Loading…
Reference in New Issue
Block a user