摘要: 线性模型基础,引自视频:刘二大人——《PyTorch深度学习实践》完结合集(p5) 要求 绘制各种优化算法的曲线进行比较 以训练次数为x,loss为y进行绘制 代码如下: 点击查看代码 import torch import matplotlib.pyplot as plt # 原始数据 x_dat 阅读全文
posted @ 2021-08-03 23:22 abszse 阅读(195) 评论(0) 推荐(0)
摘要: 线性模型基础,引自视频:刘二大人——《PyTorch深度学习实践》完结合集(P4) 要求 计算模型为的导数 绘制出loss随训练次数变化的曲线 代码如下: 点击查看代码 import matplotlib.pyplot as plt import torch # 初始数据 x_data = [1.0 阅读全文
posted @ 2021-08-03 23:11 abszse 阅读(216) 评论(0) 推荐(0)
摘要: 线性模型基础,引自视频:刘二大人——《PyTorch深度学习实践》完结合集(p2) 要求 借助np.meshgrid绘制三维曲面图 总体来说,算是一个较为简单的作业 代码如下: 点击查看代码 import numpy as np import matplotlib.pyplot as plt fro 阅读全文
posted @ 2021-08-03 10:24 abszse 阅读(149) 评论(0) 推荐(0)
摘要: 题目链接: https://pintia.cn/problem-sets/994805342720868352/problems/994805519074574336 题目描述: Given a non-negative integer N, your task is to compute the 阅读全文
posted @ 2019-11-23 21:44 abszse 阅读(88) 评论(0) 推荐(0)
摘要: 题目链接: https://pintia.cn/problem-sets/994805342720868352/problems/994805521431773184 题目描述: A family hierarchy is usually presented by a pedigree tree. 阅读全文
posted @ 2019-11-23 21:16 abszse 阅读(91) 评论(0) 推荐(0)
摘要: 题目链接: https://pintia.cn/problem-sets/994805342720868352/problems/994805523835109376 题目描述: As an emergency rescue team leader of a city, you are given 阅读全文
posted @ 2019-11-23 20:16 abszse 阅读(138) 评论(0) 推荐(0)
摘要: 题目链接: https://pintia.cn/problem-sets/994805342720868352/problems/994805526272000000 题目描述: This time, you are supposed to find A+B where A and B are tw 阅读全文
posted @ 2019-11-19 21:19 abszse 阅读(117) 评论(0) 推荐(0)
摘要: 题目连接:https://pintia.cn/problem-sets/994805342720868352/problems/994805528788582400 Quesetion Describe: Calculate a+b and output the sum in standard fo 阅读全文
posted @ 2019-11-14 18:01 abszse 阅读(94) 评论(0) 推荐(0)
摘要: 题目链接:https://vjudge.net/problem/UVA-11988 题目大意:输入一串字符,并按照要求输出,遇到'['字符就将光标移动到开头,遇到‘]’字符就将光标移动到末尾。 思路: 题目不难懂,很明显的一个模拟就行,重点是如何取存储,这里选择使用链表,链表的具体定义可以去百度看一 阅读全文
posted @ 2019-01-28 18:06 abszse 阅读(136) 评论(0) 推荐(0)
摘要: 题目地址:https://vjudge.net/problem/UVA-442 题目大意:汗颜,其实我是直接看紫书的中文题意的,大意就是计算两个矩阵乘法次数,设计线性代数知识,可自己百度矩阵乘法。 思路:栈+模拟,左括号开始入栈,右括号开始计算栈顶两个矩阵的乘法次数然后再将新矩阵的n,m入栈即可。 阅读全文
posted @ 2019-01-26 15:37 abszse 阅读(108) 评论(0) 推荐(0)