# Experiment collection
![GitHub](https://img.shields.io/github/license/AsciiShell/experiment_collection)
[![PyPI version](https://badge.fury.io/py/experiment-collection.svg)](https://badge.fury.io/py/experiment-collection)
![Release](https://github.com/AsciiShell/experiment_collection/workflows/Release/badge.svg)
A set of utilities for storing and organizing experiments
# Install
```shell script
pip install experiment-collection
```
You can find another versions at [releases](https://github.com/AsciiShell/experiment_collection/releases)
or [pypi](https://pypi.org/project/experiment-collection/).
# Usage_example
`Experiment` - structure with experiment data;
`ExperimentCollectionLocal` - local experiment storage;
`ExperimentCollectionRemote` - remote experiment storage;
could combine data from multiply sources.
```python3
from experiment_collection import Experiment, ExperimentCollectionRemote
exps = ExperimentCollectionRemote('localhost:50051', 'main', 'token')
for i in range(10):
exp = Experiment('name_{}'.format(i))
exp.set_metrics({'lr': 0.1})
exp.set_params({'auc': 0.5})
exps.add_experiment(exp)
assert exps.check_experiment(exp)
# Delete latest experiment
exps.delete_experiment(exp)
assert not exps.check_experiment(exp)
```
View all results.
All metrics and params auto flatten into single columns.
<div class="cell code">
exps.get_experiments()
<div class="output execute_result">
name time params_auc metrics_lr
0 name_0 2020-09-30 23:56:39.932871 0.5 0.1
1 name_1 2020-09-30 23:56:40.216424 0.5 0.1
2 name_2 2020-09-30 23:56:40.620029 0.5 0.1
3 name_3 2020-09-30 23:56:40.916781 0.5 0.1
4 name_4 2020-09-30 23:56:41.240535 0.5 0.1
5 name_5 2020-09-30 23:56:41.567865 0.5 0.1
6 name_6 2020-09-30 23:56:41.861890 0.5 0.1
7 name_7 2020-09-30 23:56:42.177155 0.5 0.1
8 name_8 2020-09-30 23:56:42.507883 0.5 0.1
9 name_9 2020-09-30 23:56:42.818714 0.5 0.1
</div>
</div>
# License
MIT License
Copyright (c) 2020 AsciiShell (Aleksey Podchezertsev)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共24个文件
py:10个
txt:8个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:experiment_collection-0.2.6.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
experiment_collection-0.2.6.tar.gz (24个子文件)
experiment_collection-0.2.6
MANIFEST.in 26B
PKG-INFO 4KB
requirements_server.txt 90B
requirements_client.txt 45B
requirements_test.txt 77B
setup_client.py 2KB
src
experiment_collection.egg-info
PKG-INFO 4KB
requires.txt 46B
not-zip-safe 1B
SOURCES.txt 814B
entry_points.txt 79B
top_level.txt 49B
dependency_links.txt 1B
experiment_collection_core
service_pb2_grpc.py 14KB
__init__.py 57B
service_pb2.py 23KB
experiment_collection
utils.py 812B
collection_remote.py 4KB
__init__.py 149B
collection_abc.py 952B
experiment.py 749B
setup.cfg 294B
setup.py 618B
README.md 2KB
共 24 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功