Skip to main content

A simple and convenient Python automation toolkit based on libraries such as PyTorch, Pandas, Scikit-learn, Matplotlib, NumPy, etc., offering features like one-click data cleaning, model training, model evaluation, automatic hyperparameter tuning, and prediction.

Project description

OneTouch 一键

发布日期: 2024年10月24日

版权所有: 17fine(个人)

版本: 0.1.dev0

前言

本参考手册详细介绍了OneTouch中包含的函数、模块和对象,描述了它们是什么以及它们做什么。了解如何使用OneTouch。

概述

简介

一款基于PyTorch、Pandas、Scikit-learn、Matplotlib、NumPy等库的简单便捷的Python自动化工具包,提供一键数据清洗、模型训练、模型评估、自动超参数调优和预测等功能。

A simple and convenient Python automation toolkit based on libraries such as PyTorch, Pandas, Scikit-learn, Matplotlib, NumPy, etc., offering features like one-click data cleaning, model training, model evaluation, automatic hyperparameter tuning, and prediction.

宗旨

以极简之码,绘繁复之功。

With minimalist code, depicting the intricate work.

安装指南

默认安装

pip install onetouch

指定版本安装

pip install onetouch==0.1.5

安装依赖库

pandas>=2.2.2
numpy>=1.26.4
seaborn>=0.12.2
matplotlib>=3.7.2
scikit-learn>=1.3.2
tqdm>=4.66.1
setuptools>=68.0.0
torch>=2.1.0+cu121

卸载

pip uninstall onetouch

快速入门

先决条件

在阅读本教程之前,你应该了解一些Python的基础知识。如果你想复习一下,请回去看看Python教程

One2Three

一键三连模块使用,集成数据清洗,模型训练,评估模型三大模块

import onetouch as ot

filename = "Your FileName"

data = ot.One2Three(None, None, filename)

功能参考

onetouch

One2Three

onetouch中, One2Three(df, label, filename)

参数

  • df: pd.DataFrame-None-

    通常是pandas处理过后的dataframe格式的数据

    dffilename必填其中之一

  • label: str-None-

    表示用于模型训练的标签栏

    默认为df最后一列

  • filepath: str-None-

    通常是原始数据的路径地址

    dffilename必填其中之一

    目前支持: .csv-.xslx

示例

import onetouch as ot

filename = "Your FileName"

data = ot.One2Three(None, None, filename)

输出

各项基本信息,不详细展开

One2Three.predict()

onetouch中, One2Three.predict(x)

参数

  • x: pd.DataFrame-

    通常是pandas处理过后的dataframe格式的数据,不含标签值

示例

import onetouch as ot
import pandas as pd

df = pd.DataFrame(None, None, 'Your filepath')

data = ot.One2Three(df)

x = pd.dataframe([1,2,3]) # 你的数据

print(data.predict(x))

输出

分类任务

  • pred: str类别标签

  • confidence: float置信度(0-1)

(pred, confidence)

回归任务

  • pred: float标签值
pred

附录

pytorch参考手册

numpy参考手册

pandas参考手册

matplotlib参考手册

scikit-learn参考手册

致谢

在此,我要特别感谢智谱清言对于OneTouch库的开发与构建所做出的巨大贡献。这款软件以其高效能和智能化特性,极大地简化了开发流程,提升了库的功能性和稳定性。智谱清言的强大指导性AI大模型,让OneTouch库的构建变得更加高效和可靠。我们对智谱清言所提供的支持表示衷心的感谢,并期待在未来的项目中继续利用这一强大工具,共同推动技术的发展。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onetouch-0.1.7.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onetouch-0.1.7-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file onetouch-0.1.7.tar.gz.

File metadata

  • Download URL: onetouch-0.1.7.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for onetouch-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4b76316ad62e05e3a42ecf83715d6cc0aa0db446373a6f20e29146f908b38e90
MD5 6e53450664f684bcad23cadf535a2f7b
BLAKE2b-256 4bd0aa12895afd4f324e2e4a27de1f1367e4a137a60ee634086da23ed15ebf1a

See more details on using hashes here.

File details

Details for the file onetouch-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: onetouch-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for onetouch-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bb27e47e2ec268e99e4e1d54f62c78404e74a3a16bd9205a2ee8b0ec79760d88
MD5 1e4d8a1bcef80a1e0c20f74dc3783d40
BLAKE2b-256 61c6b244ecf30219b35e4831750e888120bafc05b69901998d0397fb1804cc11

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page