统计分析和机器学习工具包
Project description
SPSS Pro
一个用于统计分析和机器学习的Python库,提供简单易用的接口。
安装
pip install -e .
功能特点
- 监督学习算法
- 决策树分类
- 更多算法将陆续添加...
使用示例
决策树分类
import numpy
import pandas
from spsspro.algorithm import supervised_learning
# 生成案例数据
data_x = pandas.DataFrame({
"A": numpy.random.random(size=100),
"B": numpy.random.random(size=100)
})
data_y = pandas.Series(data=numpy.random.choice([1, 2], size=100), name="C")
# 决策树分类
result = supervised_learning.decision_tree_classifier(data_x=data_x, data_y=data_y)
# 查看结果
print(f"模型准确率: {result['accuracy']}")
print("\n特征重要性:")
print(result['feature_importance'])
依赖项
- numpy
- pandas
- scikit-learn
- matplotlib
- seaborn
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spsspro-0.1.1.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spsspro-0.1.1.tar.gz.
File metadata
- Download URL: spsspro-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c573874249cf3751e39868edf101b4a273e8b906313baf888923c076c9dedbab
|
|
| MD5 |
3846b2cb6dcf3b0ab843ab29c9a1719e
|
|
| BLAKE2b-256 |
912597986de9b6c2d0ff06b290da3b1afa22d780ec3f6e15d1cc0f307d3b2222
|
File details
Details for the file spsspro-0.1.1-py3-none-any.whl.
File metadata
- Download URL: spsspro-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a616cb21ada1bcb43bf17b28b4c3a3ae95baf4eb71fdec2d76f02ecbe801c61a
|
|
| MD5 |
c5c1672315f2490e0081a0ed9db68245
|
|
| BLAKE2b-256 |
519d79cc55b59ed7569ccd62e405c97503b99e182a12cf70490669357113af96
|