@@ -29,13 +29,13 @@ and many more.
29
29
30
30
Katib stands for ` secretary ` in Arabic.
31
31
32
- # Search Algorithms
32
+ ## Search Algorithms
33
33
34
34
Katib supports several search algorithms. Follow the
35
- [ Kubeflow documentation] ( https://www.kubeflow.org/docs/components/katib/experiment/#search-algorithms-in-detail )
35
+ [ Kubeflow documentation] ( https://www.kubeflow.org/docs/components/katib/user-guides/hp-tuning/configure-algorithm/#hp-tuning-algorithms )
36
36
to know more about each algorithm and check the
37
- [ Suggestion service guide] ( / docs/new- algorithm-service.md ) to implement your
38
- custom algorithm.
37
+ [ this guide] ( https://www.kubeflow.org/ docs/components/katib/user-guides/hp-tuning/configure- algorithm/#use-custom-algorithm-in-katib )
38
+ to implement your custom algorithm.
39
39
40
40
<table >
41
41
<tbody >
@@ -137,141 +137,68 @@ custom algorithm.
137
137
</tbody >
138
138
</table >
139
139
140
- To perform above algorithms Katib supports the following frameworks:
140
+ To perform the above algorithms Katib supports the following frameworks:
141
141
142
142
- [ Goptuna] ( https://github.com/c-bata/goptuna )
143
143
- [ Hyperopt] ( https://github.com/hyperopt/hyperopt )
144
144
- [ Optuna] ( https://github.com/optuna/optuna )
145
145
- [ Scikit Optimize] ( https://github.com/scikit-optimize/scikit-optimize )
146
146
147
- # Installation
148
-
149
- For the various Katib installs check the
150
- [ Kubeflow guide] ( https://www.kubeflow.org/docs/components/katib/hyperparameter/#katib-setup ) .
151
- Follow the next steps to install Katib standalone.
152
-
153
147
## Prerequisites
154
148
155
- This is the minimal requirements to install Katib:
156
-
157
- - Kubernetes >= 1.27
158
- - ` kubectl ` >= 1.27
149
+ Please check [ the official Kubeflow documentation] ( https://www.kubeflow.org/docs/components/katib/installation/#prerequisites )
150
+ for prerequisites to install Katib.
159
151
160
- ## Latest Version
152
+ ## Installation
161
153
162
- For the latest Katib version run this command:
163
-
164
- ```
165
- kubectl apply -k "github.com/kubeflow/katib.git/manifests/v1beta1/installs/katib-standalone?ref=master"
166
- ```
154
+ Please follow [ the Kubeflow Katib guide] ( https://www.kubeflow.org/docs/components/katib/installation/#installing-katib )
155
+ for the detailed instructions on how to install Katib.
167
156
168
- ## Release Version
157
+ ### Installing the Control Plane
169
158
170
- For the specific Katib release (for example ` v0.14.0 ` ) run this command :
159
+ Run the following command to install the latest stable release of Katib control plane :
171
160
172
161
```
173
- kubectl apply -k "github.com/kubeflow/katib.git/manifests/v1beta1/installs/katib-standalone?ref=v0.14 .0"
162
+ kubectl apply -k "github.com/kubeflow/katib.git/manifests/v1beta1/installs/katib-standalone?ref=v0.17 .0"
174
163
```
175
164
176
- Make sure that all Katib components are running :
165
+ Run the following command to install the latest changes of Katib control plane :
177
166
178
167
```
179
- $ kubectl get pods -n kubeflow
180
-
181
- NAME READY STATUS RESTARTS AGE
182
- katib-controller-566595bdd8-hbxgf 1/1 Running 0 36s
183
- katib-db-manager-57cd769cdb-4g99m 1/1 Running 0 36s
184
- katib-mysql-7894994f88-5d4s5 1/1 Running 0 36s
185
- katib-ui-5767cfccdc-pwg2x 1/1 Running 0 36s
168
+ kubectl apply -k "github.com/kubeflow/katib.git/manifests/v1beta1/installs/katib-standalone?ref=master"
186
169
```
187
170
188
171
For the Katib Experiments check the [ complete examples list] ( ./examples/v1beta1 ) .
189
172
190
- # Quickstart
173
+ ### Installing the Python SDK
191
174
192
- You can run your first HyperParameter Tuning Experiment using [ Katib Python SDK] ( ./sdk/python/v1beta1 ) .
175
+ Katib implements [ a Python SDK] ( https://pypi.org/project/kubeflow-katib/ ) to simplify creation of
176
+ hyperparameter tuning jobs for Data Scientists.
193
177
194
- In the following example we are going to maximize a simple objective function:
195
- $F(a,b) = 4a - b^2$. The bigger $a$ and the lesser $b$ value, the bigger the function value $F$.
178
+ Run the following command to install the latest stable release of Katib SDK:
196
179
197
- ``` python
198
- import kubeflow.katib as katib
199
-
200
- # Step 1. Create an objective function.
201
- def objective (parameters ):
202
- # Import required packages.
203
- import time
204
- time.sleep(5 )
205
- # Calculate objective function.
206
- result = 4 * int (parameters[" a" ]) - float (parameters[" b" ]) ** 2
207
- # Katib parses metrics in this format: <metric-name>=<metric-value>.
208
- print (f " result= { result} " )
209
-
210
- # Step 2. Create HyperParameter search space.
211
- parameters = {
212
- " a" : katib.search.int(min = 10 , max = 20 ),
213
- " b" : katib.search.double(min = 0.1 , max = 0.2 )
214
- }
215
-
216
- # Step 3. Create Katib Experiment.
217
- katib_client = katib.KatibClient()
218
- name = " tune-experiment"
219
- katib_client.tune(
220
- name = name,
221
- objective = objective,
222
- parameters = parameters,
223
- objective_metric_name = " result" ,
224
- max_trial_count = 12
225
- )
226
-
227
- # Step 4. Get the best HyperParameters.
228
- print (katib_client.get_optimal_hyperparameters(name))
180
+ ``` sh
181
+ pip install -U kubeflow-katib
229
182
```
230
183
231
- # Documentation
232
-
233
- - Check
234
- [ the Katib getting started guide] ( https://www.kubeflow.org/docs/components/katib/hyperparameter/#example-using-random-search-algorithm ) .
235
-
236
- - Learn about Katib ** Concepts** in this
237
- [ guide] ( https://www.kubeflow.org/docs/components/katib/overview/#katib-concepts ) .
238
-
239
- - Learn about Katib ** Interfaces** in this
240
- [ guide] ( https://www.kubeflow.org/docs/components/katib/overview/#katib-interfaces ) .
241
-
242
- - Learn about Katib ** Components** in this
243
- [ guide] ( https://www.kubeflow.org/docs/components/katib/hyperparameter/#katib-components ) .
244
-
245
- - Know more about Katib in the [ presentations and demos list] ( ./docs/presentations.md ) .
184
+ ## Getting Started
246
185
247
- # Community
186
+ Please refer to [ the getting started guide] ( https://www.kubeflow.org/docs/components/katib/getting-started/#getting-started-with-katib-python-sdk )
187
+ to quickly create your first hyperparameter tuning Experiment using the Python SDK.
248
188
249
- We are always growing our community and invite new users and AutoML enthusiasts
250
- to contribute to the Katib project. The following links provide information
251
- about getting involved in the community:
189
+ ## Community
252
190
253
- - Subscribe to the
254
- [ AutoML calendar] ( https://calendar.google.com/calendar/u/0/r?cid=ZDQ5bnNpZWZzbmZna2Y5MW8wdThoMmpoazRAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ )
255
- to attend Working Group bi-weekly community meetings.
191
+ The following links provide information on how to get involved in the community:
256
192
257
- - Check the
258
- [ AutoML and Training Working Group meeting notes] ( https://docs.google.com/document/d/1MChKfzrKAeFRtYqypFbMXL6ZIc_OgijjkvbqmwRV-64/edit ) .
259
-
260
- - If you use Katib, please update [ the adopters list] ( ADOPTERS.md ) .
193
+ - Attend [ the bi-weekly AutoML and Training Working Group] ( https://bit.ly/2PWVCkV )
194
+ community meeting.
195
+ - Join our [ ` #kubeflow-katib ` ] ( https://www.kubeflow.org/docs/about/community/#kubeflow-slack-channels )
196
+ Slack channel.
197
+ - Check out [ who is using Katib] ( ADOPTERS.md ) and [ presentations about Katib project] ( docs/presentations.md ) .
261
198
262
199
## Contributing
263
200
264
- Please feel free to test the system! [ Developer guide] ( ./docs/developer-guide.md )
265
- is a good starting point for our developers.
266
-
267
- ## Blog posts
268
-
269
- - [ Kubeflow Katib: Scalable, Portable and Cloud Native System for AutoML] ( https://blog.kubeflow.org/katib/ )
270
- (by Andrey Velichkevich)
271
-
272
- ## Events
273
-
274
- - [ AutoML and Training WG Summit. 16th of July 2021] ( https://docs.google.com/document/d/1vGluSPHmAqEr8k9Dmm82RcQ-MVnqbYYSfnjMGB-aPuo/edit?usp=sharing )
201
+ Please refer to the [ CONTRIBUTING guide] ( CONTRIBUTING.md ) .
275
202
276
203
## Citation
277
204
0 commit comments