01 2022 档案
摘要:转自:https://blog.csdn.net/weixin_39858245/article/details/110776936 1.例子 import numpy as np a=np.array([[1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 0, 0], [0, 1,
阅读全文
摘要:转自:https://zhuanlan.zhihu.com/p/380795956 1.torch.optim.lr_scheduler.ReduceLROnPlateau 定义: torch.optim.lr_scheduler.ReduceLROnPlateau(optimizer, mode=
阅读全文
摘要:转自:https://blog.csdn.net/sinat_29957455/article/details/82778306 https://www.jianshu.com/p/eab5268ded22 1.os.walk遍历目录
阅读全文
摘要:1.np.repeat https://blog.csdn.net/u010496337/article/details/50572866/ import numpy as np a=np.array(([1,2],[3,4])) print(np.repeat(a,2)) #结果: [1 1 2
阅读全文
摘要:转自:https://www.jianshu.com/p/f063a4aa980a 1.例子 from anndata import AnnData import scanpy as sc adata = ad.AnnData(np.array([ [3, 3, 3, 6, 6], [1, 1, 1
阅读全文
摘要:转自:https://blog.csdn.net/zhao2chen3/article/details/113746841 https://blog.csdn.net/weixin_39673686/article/details/104364049 1.Nan与Inf NAN:Not A numb
阅读全文
摘要:转自:https://www.jb51.net/article/190589.htm 1. nargs nargs:ArgumentParser对象通常将一个动作与一个命令行参数关联。nargs关键字参数将一个动作与不同数目的命令行参数关联在一起: nargs=N,一个选项后可以跟多个参数(acti
阅读全文
摘要:转自:https://blog.csdn.net/u011475210/article/details/77770751 1.例子 import numpy as np x = np.array([3, 1, 2]) y=np.argsort(x) z=x[y] >>> y array([1, 2,
阅读全文
摘要:转自:https://www.jianshu.com/p/44c1f526e450 1.处理流程 data.count = Read10X(data.dir = "...") data = CreateSeuratObject(counts = data.count, min.cells = 3,
阅读全文
摘要:转自:https://blog.csdn.net/u011630575/article/details/78594791 1.例子 from sklearn.metrics import cohen_kappa_score y_true = [1,1,1] y_pred = [2,2,2] prin
阅读全文
摘要:转自:https://www.jb51.net/article/210349.htm 1.占用内存大小 > library(pryr) > mem_used() 49.1 GB 2.清理空间 rm() #删除变量的引用,经常用它来清理中间对象,其中比较重要的文件可以存在硬盘里,比如csv文件或者RS
阅读全文
摘要:转自:https://scrnaseq-course.cog.sanger.ac.uk/website/seurat-chapter.html#finding-differentially-expressed-genes-cluster-biomarkers https://satijalab.or
阅读全文
摘要:1.针对一维 append: 列表添加一个元素(直接嵌套一个list) l1 = [2, 3, 4] l2 = [7, 8, 9] l1.append(l2) l1 [2, 3, 4, [7, 8, 9]] extend:两个列表合并: l1 = [2, 3, 4] l2 = [7, 8, 9] l
阅读全文
浙公网安备 33010602011771号