线性回归 主要内容包括: 线性回归的基本要素 线性回归模型从零开始的实现 线性回归模型使用pytorch的简洁实现 线性回归的基本要素 模型 为了简单起见,这里我们假设价格只取决于房屋状况的两个因素,即面积(平方米)和房龄(年)。接下来我们希望探索价格与这两个因素的具体关系。线性回归假设输出与各个输 ...
分类:
其他好文 时间:
2020-02-13 17:32:55
阅读次数:
73
今天继续研究了一下制作了一个简易小相册 代码附上 mainActivity.java package com.example.xiangce; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; imp ...
分类:
其他好文 时间:
2020-02-13 15:03:23
阅读次数:
76
题目内容 Given a singly linked list, determine if it is a palindrome. Example: 分析过程 题目归类: 链表反转,fast/slow双指针法 题目分析: 这道题归到easy其实是不对的,应该归到medium,因为如果要考虑O(n)时 ...
分类:
其他好文 时间:
2020-02-13 15:00:47
阅读次数:
64
You are given a string ss. Each character is either 0 or 1. You want all 1's in the string to form a contiguous subsegment. For example, if the string ...
分类:
其他好文 时间:
2020-02-13 13:12:48
阅读次数:
61
生成SSH 创建SSH,执行ssh-keygen -t rsa -C "youremail@example.com",会在.ssh目录下生成id_rsa、id_rsa.pub两个私钥和公钥。 image.png 有个路径需要填写 直接复制箭头部分就可以 通过cat ~/.ssh/id_rsa.pub ...
分类:
其他好文 时间:
2020-02-13 13:00:03
阅读次数:
72
项目结构: 控制类:IndexController package com.example.meeting.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bin ...
分类:
编程语言 时间:
2020-02-13 12:44:28
阅读次数:
73
创建 一个 shell 文件 looprtask.sh 添加内容 如下: EXPORT_START_DATE=$1EXPORT_END_DATE=$2 #parameter example#EXPORT_START_DATE=2019-01-01 #EXPORT_END_DATE=2019-01-0 ...
分类:
系统相关 时间:
2020-02-13 12:32:32
阅读次数:
124
爬楼梯。题意是给一个数字n代表楼梯的高度,你可以每次爬一步或者两步,求有多少种不同的爬法。例子, Example 1: Input: 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step ...
分类:
其他好文 时间:
2020-02-13 09:56:32
阅读次数:
70
Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Input: ho ...
分类:
其他好文 时间:
2020-02-13 09:30:42
阅读次数:
57
request 当一个页面被请求时,Django就会创建一个包含本次请求原信息的HttpRequest对象。Django会将这个对象自动传递给响应的视图函数,一般视图函数约定俗成地使用 request 参数承接这个对象。 常用值 request.method # 请求方法 GET POST,八种请求 ...
分类:
其他好文 时间:
2020-02-13 09:27:43
阅读次数:
71