aiauto-client 0.1.19__tar.gz → 0.1.21__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {aiauto_client-0.1.19/src/aiauto_client.egg-info → aiauto_client-0.1.21}/PKG-INFO +6 -3
  2. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/README.md +5 -2
  3. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/pyproject.toml +1 -1
  4. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto/core.py +7 -2
  5. {aiauto_client-0.1.19 → aiauto_client-0.1.21/src/aiauto_client.egg-info}/PKG-INFO +6 -3
  6. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/MANIFEST.in +0 -0
  7. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/examples/example_simple.py +0 -0
  8. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/examples/example_torch_multiple_objective.py +0 -0
  9. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/examples/example_torch_single_objective.py +0 -0
  10. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/setup.cfg +0 -0
  11. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto/__init__.py +0 -0
  12. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto/_config.py +0 -0
  13. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto/constants.py +0 -0
  14. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto/http_client.py +0 -0
  15. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto/serializer.py +0 -0
  16. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto_client.egg-info/SOURCES.txt +0 -0
  17. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto_client.egg-info/dependency_links.txt +0 -0
  18. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto_client.egg-info/requires.txt +0 -0
  19. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/src/aiauto_client.egg-info/top_level.txt +0 -0
  20. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/tests/test_pruners.py +0 -0
  21. {aiauto_client-0.1.19 → aiauto_client-0.1.21}/tests/test_samplers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aiauto-client
3
- Version: 0.1.19
3
+ Version: 0.1.21
4
4
  Summary: AI Auto HPO (Hyperparameter Optimization) Client Library
5
5
  Author-email: AIAuto Team <ainode@zeroone.ai>
6
6
  Project-URL: Homepage, https://dashboard.common.aiauto.pangyo.ainode.ai
@@ -67,7 +67,7 @@ for image in aiauto.RUNTIME_IMAGES:
67
67
  ```
68
68
 
69
69
  ## 실행 흐름
70
- ### token 발급 # TODO
70
+ ### token 발급
71
71
  - `https://dashboard.common.aiauto.pangyo.ainode.ai` 에 접속하여 ainode 에 로그인 한 후
72
72
  - `https://dashboard.common.aiauto.pangyo.ainode.ai/token` 으로 이동하여 aiauto 의 token 을 발급
73
73
  - 아래 코드 처럼 발급한 token 을 넣어 AIAutoController singleton 객체를 초기화, OptunaWorkspace 를 활성화 시킨다
@@ -106,7 +106,10 @@ while study_wrapper.get_status()['count_completed'] < study_wrapper.get_status()
106
106
  ```
107
107
  - best trial 을 가져오는 법
108
108
  ```python
109
- TODO
109
+ # 진짜 optuna study 를 받아옴
110
+ real_study = study_wrapper.get_study()
111
+ best_trial = real_study.best_trial
112
+ print(best_trial.params)
110
113
  ```
111
114
 
112
115
  ## Jupyter Notebook 사용 시 주의사항
@@ -40,7 +40,7 @@ for image in aiauto.RUNTIME_IMAGES:
40
40
  ```
41
41
 
42
42
  ## 실행 흐름
43
- ### token 발급 # TODO
43
+ ### token 발급
44
44
  - `https://dashboard.common.aiauto.pangyo.ainode.ai` 에 접속하여 ainode 에 로그인 한 후
45
45
  - `https://dashboard.common.aiauto.pangyo.ainode.ai/token` 으로 이동하여 aiauto 의 token 을 발급
46
46
  - 아래 코드 처럼 발급한 token 을 넣어 AIAutoController singleton 객체를 초기화, OptunaWorkspace 를 활성화 시킨다
@@ -79,7 +79,10 @@ while study_wrapper.get_status()['count_completed'] < study_wrapper.get_status()
79
79
  ```
80
80
  - best trial 을 가져오는 법
81
81
  ```python
82
- TODO
82
+ # 진짜 optuna study 를 받아옴
83
+ real_study = study_wrapper.get_study()
84
+ best_trial = real_study.best_trial
85
+ print(best_trial.params)
83
86
  ```
84
87
 
85
88
  ## Jupyter Notebook 사용 시 주의사항
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "aiauto-client"
7
- version = "0.1.19"
7
+ version = "0.1.21"
8
8
  description = "AI Auto HPO (Hyperparameter Optimization) Client Library"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -153,10 +153,15 @@ class CallbackTopNArtifact:
153
153
  if artifact_id:
154
154
  try:
155
155
  self.artifact_store.remove(artifact_id)
156
- # user_attr에서도 제거
157
- study._storage.set_trial_user_attr(old_trial._trial_id, self.check_attr_name, None)
158
156
  except Exception as e:
159
157
  print(f"Warning: Failed to remove artifact {artifact_id}: {e}")
158
+ finally:
159
+ try:
160
+ # 일부 스토리지(GrpcStorageProxy)는 None 값을 무시하거나 직렬화하지 않을 수 있음.
161
+ # UI에서 링크를 숨기기 위해 빈 문자열로 설정(빈 문자열은 falsy로 처리됨).
162
+ study._storage.set_trial_user_attr(old_trial._trial_id, self.check_attr_name, "")
163
+ except Exception as e2:
164
+ print(f"Warning: Failed to clear user_attr {self.check_attr_name} for trial {old_trial.number}: {e2}")
160
165
 
161
166
 
162
167
  class StudyWrapper:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aiauto-client
3
- Version: 0.1.19
3
+ Version: 0.1.21
4
4
  Summary: AI Auto HPO (Hyperparameter Optimization) Client Library
5
5
  Author-email: AIAuto Team <ainode@zeroone.ai>
6
6
  Project-URL: Homepage, https://dashboard.common.aiauto.pangyo.ainode.ai
@@ -67,7 +67,7 @@ for image in aiauto.RUNTIME_IMAGES:
67
67
  ```
68
68
 
69
69
  ## 실행 흐름
70
- ### token 발급 # TODO
70
+ ### token 발급
71
71
  - `https://dashboard.common.aiauto.pangyo.ainode.ai` 에 접속하여 ainode 에 로그인 한 후
72
72
  - `https://dashboard.common.aiauto.pangyo.ainode.ai/token` 으로 이동하여 aiauto 의 token 을 발급
73
73
  - 아래 코드 처럼 발급한 token 을 넣어 AIAutoController singleton 객체를 초기화, OptunaWorkspace 를 활성화 시킨다
@@ -106,7 +106,10 @@ while study_wrapper.get_status()['count_completed'] < study_wrapper.get_status()
106
106
  ```
107
107
  - best trial 을 가져오는 법
108
108
  ```python
109
- TODO
109
+ # 진짜 optuna study 를 받아옴
110
+ real_study = study_wrapper.get_study()
111
+ best_trial = real_study.best_trial
112
+ print(best_trial.params)
110
113
  ```
111
114
 
112
115
  ## Jupyter Notebook 사용 시 주의사항
File without changes