当前位置:网站首页>安装scVI及使用教程
安装scVI及使用教程
2022-04-22 22:09:00 【qq_45759229】
首先
参考教程
https://docs.scvi-tools.org/en/0.6.3/tutorials/basic_tutorial.html
其中输入
首先需要安装pytorch
pip install torch==1.10.2
pip install scvi[notebooks]
即可,然后下载scVI自带数据需要注意
例如
import sys
show_plot = True
test_mode = False
save_path = "data/"
if not test_mode:
save_path = "data/"
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scvi.dataset import CortexDataset, RetinaDataset
from scvi.models import VAE
from scvi.inference import UnsupervisedTrainer, load_posterior
from scvi import set_seed
import torch
# Control UMAP numba warnings
import warnings; warnings.simplefilter('ignore')
%matplotlib inline
# Sets torch and numpy random seeds, run after all scvi imports
set_seed(0)
retina_dataset = RetinaDataset(save_path=save_path)
这里数据总是下载失败,可以去源码里找到下载loom文件的原始链接,然后浏览器下载保存在data文件里,就可以离线家在,但是我发现加载这个数据会出现一个问题,就是
解决办法
pip install h5py==2.10.0
版权声明
本文为[qq_45759229]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45759229/article/details/124337571
边栏推荐
猜你喜欢

【Paper】2019_ Distributed fixed-time consensus-based formation tracking for multiple nonholonomic whee

【洛穀】P1162 填塗顏色(bfs)

Flex layout

小赛毛游C记——初识C语言(3)

2.56-试着用不同的示例值来运行show_bytes的代码。

396. 旋转函数 / 剑指 Offer II 013. 二维子矩阵的和

ACL2022 | 利用中文语言层级异质图强化预训练语言模型
![[Luogu] p1162 filling color (BFS)](/img/08/8db3f1b36d222eb489a456de814d56.png)
[Luogu] p1162 filling color (BFS)

Rasa课程、Rasa培训、Rasa面试、Rasa实战系列之Rasa全新全局词槽映射的 3 大方法

A simple and easy-to-use file upload scheme
随机推荐
怎么判断企业该做几级等保呢?做等保的意义又有哪些?
JVM性能调优1
公众号配置伪静态防止出现页面路径加载问题
MySql--库的操作
GBase 8s V8. 8 SQL Guide: Tutorial - 6.2.1 (1)
CAS统一身份认证(三):外部独立配置
Realizing tab switching with foreach and ES6
High end beer is losing young people
How to judge how many levels of insurance the enterprise should do? What is the significance of waiting insurance?
【零散知识点总结5】
MySql--数据库基础
不能再简单的意向锁
PHP wechat refund certificate
Flex layout
接续符介绍及用法和++和--操作符分析介绍及用法
条件编译分析及使用
初学单片机点亮第一个外设--LED灯
MySql内置函数
多线程进阶(六)----锁机制
Steps to build appinventor2 on the window