Skip to content

Commit

Permalink
Code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicl-nno committed Nov 15, 2024
1 parent 315c341 commit a229e06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
17 changes: 0 additions & 17 deletions golem/core/optimisers/opt_history_objects/opt_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,23 +174,6 @@ def all_historical_quality(self, metric_position: int = 0) -> List[float]:
def show(self):
return OptHistoryVisualizer(self)

# def analyze_online(self, url='https://fedot.onti.actcognitive.org'):
# case_id = FILE_NAME.replace('.json', '') + str(uuid4())
# history_url = f'{DOMAIN}/ws/sandbox/custom_{case_id}/history'
# post_url = f"{DOMAIN}/api/showcase/add"
#
# history_json = json.load(open(BASE_PATH.joinpath(FILE_NAME)))
# new_case = {
# 'case': {
# 'case_id': case_id,
# },
# 'history': history_json
# }
# response = requests.post(post_url, json=new_case)
#
# print(response.text, response.status_code, )
# print(f'IMPORTANT! Save this url.\n{history_url}')

def get_leaderboard(self, top_n: int = 10) -> str:
"""
Prints ordered description of the best solutions in history
Expand Down
4 changes: 2 additions & 2 deletions golem/core/optimisers/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ class GraphOptimizer:
def __init__(self,
objective: Objective,
initial_graphs: Optional[Sequence[Union[Graph, Any]]] = None,
# TODO: rename params to avoid confusion
requirements: Optional[OptimizationParameters] = None,
graph_generation_params: Optional[GraphGenerationParams] = None,
graph_optimizer_params: Optional[AlgorithmParameters] = None):
graph_optimizer_params: Optional[
AlgorithmParameters] = None): # check if correct for inherited optimizers
self.log = default_log(self)
self._objective = objective
initial_graphs = graph_generation_params.adapter.adapt(initial_graphs) if initial_graphs else None
Expand Down

0 comments on commit a229e06

Please sign in to comment.