0 Star 0 Fork 1

myhub / MLP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

uc 一款专注于数据分析的深度学习框架

Windows Linux

对比测试

安装

pip install uc

功能特性

  • 支持特征重要性
  • 支持缺失值
  • 支持am2/am2l/a2m2/a2m2l激活函数
  • 支持softmax/hardmax/mse/hardmse损失函数
  • 支持fc/add/conv运算

第一个例子

# let's use a simple example to learn how to use
from uc.mlp import MLP
import numpy as np

# generate sample
X = np.linspace(-np.pi, np.pi, num=5000).reshape(-1, 1)
Y = np.sin(X)
print(X.shape, Y.shape)

# fit and predict
mlp = MLP(layer_size=[X.shape[1], 8, 8, 8, 1], rate_init=0.02, loss_type="mse", epoch_train=100, epoch_decay=10, verbose=1)

mlp.fit(X, Y)
pred = mlp.predict(X)

# show the result
import matplotlib.pyplot as plt  
plt.plot(X, pred)
plt.show()

更多示例

空文件

简介

uc 一款专注于数据分析的深度学习框架 展开 收起
Python
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/microic/uc.git
git@gitee.com:microic/uc.git
microic
uc
MLP
master

搜索帮助