Skip to content

Commit 06f962c

Browse files
tornedeLukas Fehring
andauthored
Update version to 1.2.0 (#109)
* Update version and changelog * Updated author email address * Removed duplicated line of code * Remove unnecessary "the" in document title --------- Co-authored-by: Lukas Fehring <lukas.ferhing@stud.uni-hannover.de>
1 parent 125b176 commit 06f962c

File tree

7 files changed

+40
-12
lines changed

7 files changed

+40
-12
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ jobs:
2626
with:
2727
virtualenvs-create: true
2828
virtualenvs-in-project: true
29-
- name: Disable Modern Dependency Installation
30-
id: poetry-disable-modern
31-
run: poetry config installer.modern-installation false
3229
- name: Load cached venv
3330
id: cached-poetry-dependencies
3431
uses: actions/cache@v3

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Core Development Team
77

88
- `Tanja Tornede <mailto:t.tornede@ai.uni-hannover.de?subject=[PyExperimenter]/>`_
99
- `Alexander Tornede <mailto:a.tornede@ai.uni-hannover.de?subject=[PyExperimenter]/>`_
10-
- `Lukas Fehring <mailto:fehring2@mail.uni-paderborn.de?subject=[PyExperimenter]/>`_
10+
- `Lukas Fehring <mailto:lukas.fehring@stud.uni-hannover.de?subject=[PyExperimenter]/>`_
1111
- `Helena Graf <mailto:h.graf@ai.uni-hannover.de?subject=[PyExperimenter]/>`_
1212
- `Jonas Hanselle <mailto:jonas.hanselle@upb.de?subject=[PyExperimenter]/>`_
1313
- `Felix Mohr <mailto:felix.mohr@unisabana.edu.co?subject=[PyExperimenter]/>`_

CHANGELOG.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22
Changelog
33
=========
44

5+
6+
v1.2.0 (03/04/2023)
7+
===================
8+
9+
Feature
10+
-------
11+
12+
- Added logtables functionality, allowing to incrementally log information during the execution of an experiment, which is described in detail in the documentation.
13+
- Documentation of the usage of ``PyExperimenter`` has been reworked in large parts.
14+
15+
Examples
16+
--------
17+
- An additional logtable example has been added.
18+
- An issue of the example notebook has been fixed causing them to fail due to missing directories.
19+
- Improved general example to cover extended functionality of ``PyExperimenter.reset_experiments()``.
20+
21+
Fix
22+
---
23+
24+
- Start date is now set when pulling an experiment
25+
- Supported Python version is now >= 3.9
26+
- Changed row identification in ResultProcessor to experiment ID instead of checking keyfields
27+
- Stack traces are now correctly logged into the mysql database, as the used mysql connector implementation has been changed to C.
28+
- Changed multiprocessing to joblib due to issues with the example notebooks
29+
- The ``random_order`` parameter is not needed anymore for the execution, therefore it has been removed.
30+
- Documentation of ``PyExperimenter.reset_experiments()`` has been updated to reflect the changes in the functionality.
31+
32+
Tests
33+
-----
34+
35+
- Tests covering the new functionality of logtables have been added.
36+
37+
538
v1.1.0 (21/11/2022)
639
===================
740

docs/source/usage/execution.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _execution:
22

33
============================
4-
Executing the PyExperimenter
4+
Executing PyExperimenter
55
============================
66

77
The actual execution of ``PyExperimenter`` only needs a few lines of code. Please make sure that you have created the :ref:`experiment configuration file <experiment_configuration_file>` and defined the :ref:`experiment function <experiment_function>` beforehand.

py_experimenter/database_connector.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import abc
22
import logging
33
from configparser import ConfigParser
4-
from datetime import datetime
54
from typing import Dict, List, Optional, Tuple, Union
65

76
import pandas as pd
@@ -320,8 +319,8 @@ def delete_table(self) -> None:
320319
self.execute(cursor, f'DROP TABLE IF EXISTS {self.table_name}')
321320
self.commit(connection)
322321

323-
def get_logtable(self, table_name: str) -> pd.DataFrame:
324-
return self.get_table(f'{self.table_name}__{table_name}')
322+
def get_logtable(self, logtable_name: str) -> pd.DataFrame:
323+
return self.get_table(f'{self.table_name}__{logtable_name}')
325324

326325
def get_table(self, table_name: Optional[str] = None) -> pd.DataFrame:
327326
connection = self.connect()

py_experimenter/result_processor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ def __init__(self, _config: dict, credential_path, table_name: str, result_field
3131
self._timestamp_on_result_fields = utils.timestamps_for_result_fields(self._config)
3232

3333
self._experiment_id = experiment_id
34-
self._experiment_id = experiment_id
35-
self._experiment_id_condition = f'ID = {experiment_id}'
34+
self._experiment_id_condition = f'ID = {self._experiment_id}'
3635

3736
if _config['PY_EXPERIMENTER']['provider'] == 'sqlite':
3837
self._dbconnector: DatabaseConnector = DatabaseConnectorLITE(_config)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[tool.poetry]
22
name = "py-experimenter"
3-
version = "1.1.0"
3+
version = "1.2.0"
44
description = "The PyExperimenter is a tool for the automatic execution of experiments, e.g. for machine learning (ML), capturing corresponding results in a unified manner in a database."
55
authors = [
66
"Tanja Tornede <t.tornede@ai.uni-hannover.de>",
77
"Alexander Tornede <a.tornede@ai.uni-hannover.de>",
8-
"Lukas Fehring <fehring2@mail.uni-paderborn.de>",
8+
"Lukas Fehring <lukas.fehring@stud.uni-hannover.de>",
99
"Lukas Gehring",
1010
"Helena Graf <h.graf@ai.uni-hannover.de>",
1111
"Jonas Hanselle <jonas.hanselle@upb.de>",

0 commit comments

Comments
 (0)