mirror of
https://github.com/clearml/clearml
synced 2025-06-22 17:45:43 +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)
|
return str(self) == str(other)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"TaskTypes.{self.value}"
|
return "TaskTypes.{}".format(self.value)
|
||||||
|
|
||||||
training = 'training'
|
training = 'training'
|
||||||
testing = 'testing'
|
testing = 'testing'
|
||||||
@ -116,7 +116,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
|||||||
return str(self) == str(other)
|
return str(self) == str(other)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"TaskTypes.{self.value}"
|
return "TaskTypes.{}".format(self.value)
|
||||||
|
|
||||||
created = "created"
|
created = "created"
|
||||||
queued = "queued"
|
queued = "queued"
|
||||||
|
6
clearml/external/kerastuner.py
vendored
6
clearml/external/kerastuner.py
vendored
@ -1,12 +1,10 @@
|
|||||||
from typing import Optional
|
from typing import Optional
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
|
from ..task import Task
|
||||||
|
|
||||||
_logger = getLogger("clearml.external.kerastuner")
|
_logger = getLogger("clearml.external.kerastuner")
|
||||||
|
|
||||||
|
|
||||||
from ..task import Task
|
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -119,4 +117,4 @@ else:
|
|||||||
summary = pd.concat([summary, pd.DataFrame(trial_dict, index=[trial.trial_id])], ignore_index=True)
|
summary = pd.concat([summary, pd.DataFrame(trial_dict, index=[trial.trial_id])], ignore_index=True)
|
||||||
summary.index.name = "trial id"
|
summary.index.name = "trial id"
|
||||||
summary = summary[["trial id", *sorted(summary.columns[1:])]]
|
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)
|
__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)
|
__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_section = "launch_multi_node"
|
||||||
_launch_multi_node_instance_tag = "multi_node_instance"
|
_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 >= 3.1.1 ; python_version >= '3.6'
|
||||||
matplotlib >= 2.2.4 ; python_version < '3.6'
|
matplotlib >= 2.2.4 ; python_version < '3.6'
|
||||||
numpy != 1.24.0 # https://github.com/numpy/numpy/issues/22826
|
numpy != 1.24.0 # https://github.com/numpy/numpy/issues/22826
|
||||||
|
bokeh_sampledata==2024.2 ; python_version >= '3.10'
|
||||||
pandas
|
pandas
|
||||||
pillow>=4.0
|
pillow>=4.0
|
||||||
plotly
|
plotly
|
||||||
|
Loading…
Reference in New Issue
Block a user