ZhangZhihui's Blog  
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 102 下一页

2024年10月14日

摘要: from sklearn.datasets import make_moons from sklearn.model_selection import train_test_split X, y = make_moons(n_samples=100, noise=.3, random_state=0 阅读全文
posted @ 2024-10-14 09:20 ZhangZhihuiAAA 阅读(20) 评论(0) 推荐(0)

2024年10月13日

摘要: class StepByStep(): def __init__(self, model, loss_fn, optimizer): self.device = 'cuda' if torch.cuda.is_available() else 'cpu' self.model = model.to( 阅读全文
posted @ 2024-10-13 17:48 ZhangZhihuiAAA 阅读(18) 评论(0) 推荐(0)
 
摘要: 阅读全文
posted @ 2024-10-13 09:50 ZhangZhihuiAAA 阅读(18) 评论(0) 推荐(0)

2024年10月12日

摘要: def make_train_step_fn(model, loss_fn, optimizer): def perform_train_step_fn(x, y): # Set model to TRAIN mode model.train() # Step 1 - Compute model's 阅读全文
posted @ 2024-10-12 21:32 ZhangZhihuiAAA 阅读(61) 评论(0) 推荐(0)

2024年10月5日

摘要: %%writefile data_preparation/v0.py device = 'cuda' if torch.cuda.is_available() else 'cpu' # Our data was in Numpy arrays, but we need to transform th 阅读全文
posted @ 2024-10-05 20:17 ZhangZhihuiAAA 阅读(29) 评论(0) 推荐(0)

2024年10月2日

摘要: Regression is a statistical technique that relates a dependent variable to one or more independent variables. A regression model is able to show wheth 阅读全文
posted @ 2024-10-02 17:28 ZhangZhihuiAAA 阅读(13) 评论(0) 推荐(0)

2024年9月30日

摘要: Jupyter Extension is needed for connecting Jupyter lab server. Install the Jupyter Extension: Start a Jupyter lab server: (zpytorch) zzh@ZZHPC:/zdata/ 阅读全文
posted @ 2024-09-30 07:53 ZhangZhihuiAAA 阅读(50) 评论(0) 推荐(0)

2024年9月29日

摘要: %reload_ext autoreload %autoreload 2 以上代码只需执行一次。 对已import的方法做修改,修改的内容直接生效,不需要重新import。 新增的方法需要import才能使用,import之后之前定义的类对象可以使用这个新方法。 在一个module中删除一个方法,即 阅读全文
posted @ 2024-09-29 21:27 ZhangZhihuiAAA 阅读(98) 评论(0) 推荐(0)

2024年9月28日

摘要: Searched 'def seed(' in the source code: There is one definition of the seed() method in interface class RandomState: The implementation of the seed() 阅读全文
posted @ 2024-09-28 13:47 ZhangZhihuiAAA 阅读(12) 评论(0) 推荐(0)
 
摘要: Gradient descent is an iterative technique commonly used in machine learning and deep learning to find the best possible set of parameters / coefficie 阅读全文
posted @ 2024-09-28 11:32 ZhangZhihuiAAA 阅读(31) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 102 下一页