上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 338 下一页
摘要: 读写bin文件 ndarray.tofile(fid, sep="", format="%s") 将数组作为txt或bin(默认)写入文件, 不保存数组形状和元素类型 fid: 文件对象/文件名 sep: 分隔符 format: 格式化字符串 ndarray.fromfile(file, dtype 阅读全文
posted @ 2023-02-02 23:21 emanlee 阅读(425) 评论(0) 推荐(0)
摘要: Linux快速搭建tensorflow-gpu 1.15.0环境&Keras conda create -n tf115 -c conda-forge tensorflow-gpu=1.15 conda install keras==2.3.1 激活虚拟环境tf115 之后做以下操作: conda 阅读全文
posted @ 2023-02-02 22:41 emanlee 阅读(335) 评论(0) 推荐(0)
摘要: nvcc -V 的cuda,显卡驱动,TensorFlow 2.2, py3.8; 好像和cuDNN无关? 可以用接近版本,比如10.1和10.0可以兼容。 tensorflow-gpu无法调用GPU的解决办法 # nvcc -Vnvcc: NVIDIA (R) Cuda compiler driv 阅读全文
posted @ 2023-02-02 22:36 emanlee 阅读(5052) 评论(0) 推荐(0)
摘要: conda install cudatoolkit=10.0 conda install cudnn=7.3.1 pip3 install tensorflow-gpu==1.15 conda create -n tensorflow1.15 python=3.7 conda activate te 阅读全文
posted @ 2023-02-02 22:31 emanlee 阅读(411) 评论(0) 推荐(0)
摘要: REF https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.boxplot.html https://matplotlib.org/stable/gallery/statistics/boxplot_demo.html https: 阅读全文
posted @ 2023-02-02 20:30 emanlee 阅读(454) 评论(0) 推荐(0)
摘要: ndarray的合并 定义要使用的数据源 a = np.array([1, 1, 1]) b = np.array([2, 2, 2]) print('a', a) print('b', b) <class 'numpy.ndarray'> a [1 1 1] b [2 2 2] numpy.vst 阅读全文
posted @ 2023-02-02 20:21 emanlee 阅读(954) 评论(0) 推荐(0)
摘要: time库是python中处理时间的标准库。 计算机时间的表达:time()、ctime()、gmtime(); 提供获取系统时间并格式化输出功能: strftime()、strptime() 提供系统级精确计时功能可用于程序性能分析: sleep()、perf_counter() 时间获取 tim 阅读全文
posted @ 2023-02-02 15:36 emanlee 阅读(819) 评论(0) 推荐(0)
摘要: wget https://github.com/arq5x/bedtools2/archive/v2.25.0.tar.gztar xzvf v2.25.0 cd bedtools2-2.25.0/makecd bin/export PATH=$PWD:$PATH REF https://www.c 阅读全文
posted @ 2023-02-01 21:57 emanlee 阅读(341) 评论(0) 推荐(0)
摘要: REF https://daler.github.io/pybedtools/search.html?q=cat 示例数据: # more /python3.8/site-packages/pybedtools/test/data/a.bedchr1 1 100 feature1 0 +chr1 1 阅读全文
posted @ 2023-02-01 20:03 emanlee 阅读(791) 评论(0) 推荐(0)
摘要: model = tf.keras.models.Sequential 解决方法: 这个问题是没有导库进来解决方法:from tensorflow import keras TensorFlow 1.X 和 2.X差异很多,其中,导入包也会有很多差异。 对于已有的代码,通过他们导入的方式可以判别是 T 阅读全文
posted @ 2023-01-30 21:43 emanlee 阅读(1741) 评论(0) 推荐(0)
上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 338 下一页