- 博客(17)
- 资源 (19)
- 收藏
- 关注
原创 总是用脑子记不住
group by() 语句根据一个或多个列对结果集进行分组。eg. select 需要显示的列 from 表名 group by 列名;
2020-06-30 14:10:37 155
原创 报错CommandError: Can‘t find msgfmt. Make sure you have GNU gettext tools 0.15 or newer installed.
执行python manage.py compilemessages 提示 CommandError: Can’t find msgfmt. Make sure you have GNU gettext tools 0.15 or newer installed.
2022-10-13 14:52:49 931 2
原创 requests库操作摘要—python网络爬虫与信息提取
import requestsr = requests.get("http://www.baidu.com")print(r.status_code) # 状态码200表示访问成功r.encoding='utf-8' # utf-8编码显示内容print(r.text) # 返回页面内容返回的结果200<!DOCTYPE html><!--STATUS OK--><html> <head><meta http-equiv=content
2021-04-14 16:23:49 114
原创 模型搭建
模型程序选择模型构建网络层编译训练预测Sequential() 通过Sequential类可快速堆叠出一个神经网络模型model = Sequential()
2020-07-08 17:28:21 963
原创 排坑
**MemoryError: Unable to allocate 4.23 GiB for an array with shape (*, *, , ) and data type float16下面展示一些 内联代码片。index = [i for i in range(n_total)] np.random.shuffle(index) X_total = X_total[index] Y_total = Y_total[index] //我的数据太大了,n_tot
2020-07-07 15:53:12 4119 3
原创 Neural Networks and Deep Learning 第二周
第一题What does a neuron compute?A neuron computes the mean of all features before applying the output to an activation functionA neuron computes a linear function (z = Wx + b) followed by an activation functionA neuron computes a function g that scales t
2020-07-03 17:02:19 110
原创 Neural Networks and Deep Learning 第一周
第一题What does the analogy “AI is the new electricity” refer to?AI is powering personal devices in our homes and offices, similar to electricity.Through the “smart grid”, AI is delivering a new wave of electricity.AI runs on computers and is thus powered
2020-07-03 13:51:50 112
原创 course机器学习第二周第一节试题整理
第一题Suppose m=4 students have taken some class, and the class had a midterm exam and a final exam. You have collected a dataset of their scores on the two exams, which is as follows:midterm exam(midterm exam)^2final exam8979219672518474
2020-06-12 16:22:55 1237
原创 中国大学mooc胡浩基老师机器学习第一章单元试题
第1题-单选给人脸打上标签再让模型进行学习训练的方法,属于(A)A.监督学习B.强化学习C.半监督学习D.无监督学习第2题-单选机器学习进行的第一步是(D)A.交叉验证B.数据收集C.模型训练D.特征提取第3题-单选一般来说,在机器学习中,用计算机处理一幅的图像,维度是:(B)A.三维B.上万维C.二维D.一维第4题-单选在讲解“没有免费午餐定理”的时候,我们假设以上每一种情况出现的概率相同,请问这样的假设是基于如下哪种经验?(B)A.实践经验B.无经验C.常识经
2020-06-11 15:20:05 2302 5
原创 course机器学习第一周第三节试题整理
这些是我自己做题的思路,但是吧,本人能力和水平有限,存在理解有问题却不自知的情况,望大家帮忙指正,思路仅供参考哈第一题Let two matrices beA = [1 −2;−4 1] , B = [0 5 ;3 8]What is A - B?A:[1 −7;−7 7]B:[1 −3;1 −7]C:[1 7;7 9]D:[1 −7;−7 −7]答案:D。矩阵同维对应相减第二题Let x = [ 2;7;4;1 ]What is 3∗x ?答案: [ 6;7;4;1 ]。常数乘以
2020-06-10 18:03:55 353
原创 course机器学习第一周第二节试题整理
这些是我自己做题的思路,但是吧,本人能力和水平有限,存在理解有问题却不自知的情况,望大家帮忙指正,思路仅供参考哈第一题Consider the problem of predicting how well a student does in her second year of college/university, given how well she did in her first year.Specifically, let x be equal to the number of “A” gr
2020-06-10 16:58:04 608 1
原创 course机器学习第一周第一节试题整理
这些是我自己做题的思路,但是吧,本人能力和水平有限,存在理解有问题却不自知的情况,望大家帮忙指正哈,思路仅供参考哈第一题A computer program is said to learn from experience E with respect to some task T and some performance measure P if its performance on T, as measured by P, improves with experience E. Suppose w
2020-06-10 14:03:45 405
原创 python修改默认打开的版本
python版本切换我的电脑安装了python3和python2。3是先安装的,当我安装2时发现C盘不够了,于是安装在了D盘,现在问题是我怎么在cmd里输入python默认打开2而不是3呢???如果你想输入python2打开2,python3打开3,要重命名python.exe我的电脑安装了python3和python2。3是先安装的,当我安装2时发现C盘不够了,于是安装在了D盘,现在问题是我怎么在cmd里输入python默认打开2而不是3呢???操作如下(很简单):添加python2的环境变量,
2020-05-14 01:17:39 625
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人