<div align="center">
<img src="https://user-images.githubusercontent.com/13848158/97081166-8f568800-1611-11eb-991c-e9bc1344074e.png" height="95" />
**A super-easy way to record, search and compare AI experiments.**
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aim-cli)](https://pypi.org/project/aim-cli/)
[![PyPI Package](https://img.shields.io/pypi/v/aim-cli?color=yellow)](https://pypi.org/project/aim-cli/)
[![Downloads](https://img.shields.io/docker/pulls/aimhubio/aim-board)](https://hub.docker.com/r/aimhubio/aim-board)
[![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg)](https://opensource.org/licenses/Apache-2.0)
<a href="https://join.slack.com/t/aimstack/shared_invite/zt-ik4s4zb7-jGg4WIMu4s3NL3YAkOHVXA">
<img src="https://user-images.githubusercontent.com/13848158/97266254-9532b000-1841-11eb-8b06-ed73e99c2e5f.png" height="35" />
</a>
---
<h6 style="color: grey">
<a href="http://play.aimstack.io:43900/explore?search=eyJjaGFydCI6eyJzZXR0aW5ncyI6eyJwZXJzaXN0ZW50Ijp7InlTY2FsZSI6MCwiem9vbU1vZGUiOmZhbHNlLCJ6b29tSGlzdG9yeSI6W10sInBlcnNpc3RlbnQiOnsieVNjYWxlIjowLCJ6b29tTW9kZSI6ZmFsc2UsInpvb21IaXN0b3J5IjpbXSwicGVyc2lzdGVudCI6eyJ5U2NhbGUiOjAsInpvb21Nb2RlIjpmYWxzZSwiem9vbUhpc3RvcnkiOltdLCJwZXJzaXN0ZW50Ijp7ImRpc3BsYXlPdXRsaWVycyI6ZmFsc2UsInpvb20iOm51bGwsImludGVycG9sYXRlIjpmYWxzZX0sImRpc3BsYXlPdXRsaWVycyI6ZmFsc2UsImludGVycG9sYXRlIjp0cnVlLCJ6b29tIjp7IjAiOnsieCI6WzIuNjg1MTczMTQ4MTA1MzM4NSwzOF0sInkiOlszLjQ1NDEwMDA0ODU0MjAyMywzLjY4MjMzOTM5NzAxNzAyOF19LCIxIjp7IngiOlsyLjUzNzIwNjUxMzA3NzU1NywzOF0sInkiO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0eWxlIjpbXSwiYWdncmVnYXRlZCI6dHJ1ZX19">PLAY</a>
with live demo and check out a short
<a href="https://www.youtube.com/watch?v=TeAkyRIMxx4&ab_channel=Aim">INTRO VIDEO</a>
</h6>
<img src="https://user-images.githubusercontent.com/13848158/98570873-54b94480-22cd-11eb-84d8-c2c13651021d.png" />
---
<h6 style="color: grey">Integrate seamlessly with your favorite tools</h6>
<img src="https://user-images.githubusercontent.com/13848158/96861310-f7239c00-1474-11eb-82a4-4fa6eb2c6bb1.jpg" width="100" />
<img src="https://user-images.githubusercontent.com/13848158/97086626-8b3c6180-1635-11eb-9e90-f215b898e298.png" width="100" />
<img src="https://user-images.githubusercontent.com/13848158/96859323-6ba90b80-1472-11eb-9a6e-c60a90f11396.jpg" width="100" />
<img src="https://user-images.githubusercontent.com/13848158/96861315-f854c900-1474-11eb-8e9d-c7a07cda8445.jpg" width="100" />
</div>
## Getting started in three steps
> **1. Install Aim in your training environment**
```shell
$ pip install aim
```
> **2. Integrate Aim with your code**
<details open>
<summary>
Flexible integration for any Python script
</summary>
```python
import aim
# Save inputs, hparams or any other `key: value` pairs
aim.set_params(hyperparam_dict, name='hparams') # Passing name argument is optional
...
for step in range(10):
# Log metrics to visualize performance
aim.track(metric_value, name='metric_name', epoch=epoch_number)
...
```
_See documentation [here](#python-library)._
</details>
<details>
<summary>
PyTorch Lightning integration
</summary>
```python
from aim.pytorch_lightning import AimLogger
...
trainer = pl.Trainer(logger=AimLogger(experiment='experiment_name'))
...
```
_See documentation [here](#pytorch-lightning)._
</details>
<details>
<summary>
Keras & tf.keras integrations
</summary>
```python
import aim
# Save inputs, hparams or any other `key: value` pairs
aim.set_params(param_dict, name='params_name') # Passing name argument is optional
...
model.fit(x_train, y_train, epochs=epochs, callbacks=[
aim.keras.AimCallback(aim.Session(experiment='experiment_name'))
# Use aim.tensorflow.AimCallback in case of tf.keras
aim.tensorflow.AimCallback(aim.Session(experiment='experiment_name'))
])
...
```
_See documentation [here](#tensorflow-and-keras)._
</details>
> **3. Run the training like you are used to and start Aim UI**
```shell
$ aim up
```
## Contents
- [Aim](#aim)
- [Contents](#contents)
- [Getting Started In Three Steps](#getting-started-in-three-steps)
- [Installation](#installation)
- [Concepts](#concepts)
- [Where is the Data Stored](#where-is-the-data-stored)
- [Python Library](#python-library)
- [aim.track()](#track)
- [aim.set_params()](#set_params)
- [aim.Session()](#session)
- [Automatic Tracking](#automatic-tracking)
- [TensorFlow and Keras](#tensorflow-and-keras)
- [PyTorch Lightning](#pytorch-lightning)
- [Searching Experiments](#searching-experiments)
- [Search Examples](#search-examples)
- [Command Line Interface](#command-line-interface)
- [init](#init)
- [version](#version)
- [experiment](#experiment)
- [up](#up)
- [down](#down)
- [upgrade](#upgrade)
- [pull](#pull)
- [TensorBoard Experiments](#tensorboard-experiments)
- [Contributor Guide](https://github.com/aimhubio/aim/wiki/Contributing)
## Installation
To install Aim, you need to have python3 and pip3 installed in your environment
1. Install Aim python package
```shell
$ pip install aim
```
In order to start Aim UI you need to have Docker installed.
```shell
$ aim up
```
## Concepts
- **Run** - A single training run
- **Experiment** - a group of associated training runs
## Where is the Data Stored
When the AI training code is instrumented with [Aim Python Library](#python-library) and ran, aim automatically creates a `.aim` directory where the project is located. All the metadata tracked during training via the Python Library is stored in `.aim`.
Also see [`aim init`](#init) - an optional and alternative way to initialize aim repository.
## Python Library
Use Python Library to instrument your training code to record the experiments.
The instrumentation only takes 2 lines:
```py
import aim
```
Afterwards, simply use the two following functions to track metrics and any params respectively.
```py
...
aim.track(metric_val, name='metric_name', epoch=current_epoch)
aim.set_params(hyperparam_dict, name='dict_name')
...
```
### track
aim.**track**_(value, name='metric_name' [, epoch=epoch] [, **context_args]) <sub>[source](https://github.com/aimhubio/aim/blob/6ef09d8d77c517728978703764fc9ffe323f12b0/aim/sdk/track.py#L6)</sub>_
_Parameters_
- **value** - the metric value of type `int`/`float` to track/log
- **name** - the name of the metric of type `str` to track/log (preferred divider: `snake_case`)
- **epoch** - an optional value of the epoch being tracked
- **context_args** - any set of other parameters passed would be considered as key-value context for metrics
_Examples_
```py
aim.track(0.01, name='loss', epoch=43, subset='train', dataset='train_1')
aim.track(0.003, name='loss', epoch=43, subset='val', dataset='val_1')
```
Once tracked this way, the following search expressions will be enabled:
```py
loss if context.subset in (train, val) # Retrieve all losses in both train and val phase
loss if context.subse
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共100个文件
py:89个
txt:5个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:aim-2.0.27rc5.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | aim-2.0.27rc5.tar.gz (100个子文件)
setup.cfg 123B
MANIFEST.in 26B
LICENSE 11KB
README.md 21KB
PKG-INFO 689B
PKG-INFO 689B
repo.py 38KB
session.py 11KB
model.py 8KB
utils.py 6KB
binary_expression_tree.py 6KB
run.py 6KB
commands.py 5KB
utils.py 5KB
commands.py 5KB
pytorch_lightning.py 4KB
manager.py 4KB
command.py 4KB
container.py 4KB
artifact_writer.py 4KB
token.py 4KB
profile.py 4KB
base_pb2.py 3KB
git.py 3KB
atom.py 3KB
artifact.py 3KB
setup.py 3KB
metric.py 3KB
expression.py 3KB
record_writer.py 3KB
commands.py 2KB
map.py 2KB
base.py 2KB
utils.py 2KB
keras_mixins.py 2KB
tensorflow.py 2KB
utils.py 2KB
metric_pb2.py 2KB
metric.py 2KB
select.py 2KB
cli.py 2KB
configs.py 2KB
trace.py 2KB
select.py 1KB
commands.py 1KB
keras.py 1KB
utils.py 1KB
statement.py 1KB
commands.py 1009B
abstract_syntax_tree.py 1005B
record.py 952B
types.py 895B
utils.py 803B
commands.py 762B
node.py 695B
commands.py 519B
base.py 517B
factory.py 402B
utils.py 385B
__init__.py 379B
__init__.py 338B
track.py 311B
types.py 304B
configs.py 283B
commands.py 149B
__init__.py 133B
__init__.py 132B
__init__.py 124B
flush.py 118B
init.py 108B
tensorflow.py 106B
pytorch_lightning.py 100B
keras.py 90B
__version__.py 69B
__init__.py 60B
__init__.py 50B
__init__.py 42B
__init__.py 41B
configs.py 30B
__init__.py 22B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
SOURCES.txt 2KB
requires.txt 136B
entry_points.txt 53B
top_level.txt 4B
dependency_links.txt 1B
共 100 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功