Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 041 #279

Merged
merged 3 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
author = 'NSS Lab'

# The full version, including alpha/beta/rc tags
release = '0.4.0'
release = '0.4.1'
# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
Expand Down
17 changes: 17 additions & 0 deletions golem/core/optimisers/opt_history_objects/opt_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,23 @@ 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/visualisation/opt_viz_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ def extract_objectives(individuals: List[List[Any]], objectives_numbers: Tuple[i


def figure_to_array(fig):
img = np.fromstring(fig.canvas.tostring_rgb(), dtype=np.uint8)
img = img.reshape(fig.canvas.get_width_height()[::-1] + (3,))
img = np.frombuffer(fig.canvas.buffer_rgba(), dtype=np.uint8)
img = img.reshape(fig.canvas.get_width_height()[::-1] + (4,))
return img


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# The text of the README file
NAME = 'thegolem'
VERSION = '0.4.0'
VERSION = '0.4.1'
AUTHOR = 'NSS Lab'
SHORT_DESCRIPTION = 'Framework for Graph Optimization and Learning by Evolutionary Methods'

Expand Down
Loading