上一页 1 ··· 182 183 184 185 186 187 188 189 190 ··· 498 下一页
摘要: See the following example: const elem = document.querySelector('.click'); function handleClick(event: Event) { event.preventDefault(); console.log(thi 阅读全文
posted @ 2020-09-30 01:17 Zhentiw 阅读(402) 评论(0) 推荐(0)
摘要: Because Javascript has inconsistent way to cleanup the lisenters: removeEventListener(button, "click") clearnTimeout(id) We can implement a contract t 阅读全文
posted @ 2020-09-29 19:12 Zhentiw 阅读(155) 评论(0) 推荐(0)
摘要: enum Sizes { Small = "small", Medium = "medium", Large = "large" } let selected: Sizes = Sizes.Samll; function updateSize(size: Sizes): void { selecte 阅读全文
posted @ 2020-09-29 15:24 Zhentiw 阅读(119) 评论(0) 推荐(0)
摘要: Let's say we have enum defined as such: export enum WeekDayEnum { sunday = 0, monday, tuseday, wednesday, thursday, friday, saturday, } export type Da 阅读全文
posted @ 2020-09-29 15:13 Zhentiw 阅读(161) 评论(0) 推荐(0)
摘要: Traversing items of custom data structures, like trees or linked lists, require knowledge of how that data structure is built. That can lead to proble 阅读全文
posted @ 2020-09-27 16:21 Zhentiw 阅读(212) 评论(0) 推荐(0)
摘要: This learning curve shows high error on the test sets but comparatively low error on training set, so the algorithm is suffering from high variance. T 阅读全文
posted @ 2020-09-27 03:30 Zhentiw 阅读(193) 评论(0) 推荐(0)
摘要: StatisticSolution Accuracy (85 + 10) / (1000) = .095 Precision (85) / (85 + 890) = 0.087 Recall There are 85 true positives and 15 false negatives, so 阅读全文
posted @ 2020-09-27 03:16 Zhentiw 阅读(271) 评论(0) 推荐(0)
摘要: Recoil offers several hooks to use for consuming state in React, and this lesson looks at how to choose which hook to use, and what happens when you d 阅读全文
posted @ 2020-09-27 00:55 Zhentiw 阅读(191) 评论(0) 推荐(0)
摘要: Training an algorithm on a very few number of data points (such as 1, 2 or 3) will easily have 0 errors because we can always find a quadratic curve t 阅读全文
posted @ 2020-09-25 15:29 Zhentiw 阅读(125) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-09-22 18:24 Zhentiw 阅读(98) 评论(0) 推荐(0)
上一页 1 ··· 182 183 184 185 186 187 188 189 190 ··· 498 下一页