TensorLy 安装教程

TensorLy 笔记系列

  1. tensorly-01 安装教程
  2. tensorly-02 快速上手
  3. tensorly-03 后端系统
  4. tensorly-04 基本操作
  5. tensorly-05 张量分解
  6. tensorly-06 张量回归

1 TensorLy 简介

TensorLy 作为张量操作的 python 的第三方库,支持张量中常见的操作,比如 CP等各种分解。TensorLy 目前的测试都是基于 python3 进行的,因此并不确定是否能很好的适配 python2。个人建议如果需要使用 TensorLy, 请确保使用 python3 作为开发语言。

2. TensorLy 安装

TensorLy 的安装支持三种模式,可以根据个人的喜好进行选择。

2.1 使用 pip 安装
pip install -U tensorly 
## 其中 -U 是一个参数,如果后续想升级该库,可以添加该参数
2.2 使用 Conda 安装
conda install -c tensorly tensorly
2.3 源码变异
# 下载源码
git clone https://github.com/tensorly/tensorly
cd tensorly

# 编译源码
pip install -e

3. 测试样例

TensorLy 中提供了很多样例,可以使用 pytest测试所有的样例

pytest tensorly

4. 编译文档

编译参考文当前需要安装 slimitminify 等两个库。

pip install slimit rcssmin

通过网页阅读相关文档

make html

结果存储在 _build/html中。

5. 参考文献

TensorLy

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值