- 博客(5)
- 收藏
- 关注
原创 torch入门
张量的创建import torchimport numpy as np#创建一个张量x=torch.randn((5,3),dtype=torch.float16)#张量的形状x.shape#创建一个空张量x=torch.empty((2,3),dtype=torch.float32)#零张量x=torch.zeros((2,3),dtype=torch.long)#1张量x=torch.ones(2,3)#对角都是1x=torch.eye(3,4)#从列表创建
2021-11-08 13:52:27 3429
原创 Linux的学习
登陆#输入ssh coggle@139.198.15.157#密码:coggle创建/删除文件/夹#创建文件夹mkdir nagaloop#创建子文件夹mkdir coggle#创建文件touch test.txt#查看pwd#删除文件rm test.txt#删除文件夹rmdir coggle下载文件#此时在coggle目录下wget https://mirror.coggle.club/dataset/affairs.txt进入pyt.
2021-11-03 01:33:02 512
原创 coogle 30ML-NLP
import pandas as pdimport gcimport pandas as pdtrain_df = pd.read_csv('train_set.csv', sep='\t')test_df=pd.read_csv('test_a.csv', sep='\t')train_df['word'] = train_df['text'].apply(lambda x: len(x.split(' ')))#train_df['word']=train_df['text'].ap.
2021-10-11 15:15:23 185
原创 coogle 30ML-CV
import pandas as pd import numpy as npimport warningswarnings.filterwarnings('ignore')image_train=np.load('train.npy')image_test=np.load('test.npy')key_point=pd.read_csv('train.csv')import matplotlib.pyplot as pltXY=key_point.iloc[0,:].values.r.
2021-10-11 15:11:56 159
原创 coogle 30ML-DM
import pandas as pdpd.set_option('max_columns',None)import warningswarnings.filterwarnings('ignore')#读train=pd.read_csv('used_car_train_20200313.csv',sep=' ')test=pd.read_csv('used_car_testB_20200421.csv',sep=' ')submit=pd.read_csv('used_car_sampl.
2021-10-11 15:05:27 321
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人