摘要: class Solution: def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]: res = [] path = [] n = len(candidates) candidates.so 阅读全文
posted @ 2022-07-19 21:45 是冰美式诶 阅读(45) 评论(0) 推荐(0)
摘要: #本次采用pytorch实现 #探究房屋状况的俩个因素,房龄和面积 #公式 price = w(area)*area+w(age)*age+b #损失函数:用于衡量价格预测值与真实值之间的误差,通常我们会选取一个非负数作为误差,且数值越小表示误差越小 #优化函数 ->直接用公式表达出来。这类解叫作解 阅读全文
posted @ 2022-07-19 21:43 是冰美式诶 阅读(44) 评论(0) 推荐(0)