:::spoiler Table of Contents
:::
bebo1010 -- python
Sorting
One Line Sorting
:::spoiler Sort by another Dictionary
sorted(nums, key = lambda element: key_dict[element])
5-fold cross validation
The original dataset is randomly divided into five subsets, each containing an equal number of samples.
The model is trained and evaluated five times. In each iteration, one of the folds is held out as the validation set, while the remaining four folds are used for training.
The model is trained on the four training folds and then tested on the held-out fold. This process is repeated five times, with each fold serving as the validation set once.
The performance metrics, such as accuracy or error rate, are recorded for each iteration.
The performance metrics obtained from the five iterations are averaged to provide an overall assessment of the model's performance.
將資料集拆分成五等分,每次訓練時以四等分作為 training dataset,剩下一份作為 validation dataset。訓練時紀錄每次的表現並在最後回報五次平均的表現以作為模型的整體評估。
AUC
姓名:張議隆
學號:F74082125
:::spoiler TOC
:::
15.19
:::info
Suppose we have the following requirements for a university database that is used to keep track of students’ transcripts:
姓名:張議隆
學號:F74082125
:::spoiler TOC
:::
6.16
:::info
Specify the following queries on the COMPANY relational database schema shown in Figure 3.5, using the relational operators discussed in this chapter. Also show the result of each query as it would apply to the database state in Figure 3.6.
Student ID: F74082125
Student Name: 張議隆
See full output and data in hackmd website, full output was too long to be shown here.
Some Test Results
:::warning
When the sample data grows, sample time grows significantly.
:::
mu_prior_params_$\mu$
姓名:張議隆
學號:F74082125
:::spoiler TOC
:::
5.6
a. Retrieve the names and major departments of all straight-A students (students who have a grade of A in all their courses).
Student ID: F74082125
Student Name: 張議隆
More information in hackmd website
:::spoiler TOC
:::
How to run my code
Most commands are already written in Makefile
MicahDoo changed 2 years agoView mode Like Bookmark
contributed by < bebo1010 >
實驗環境
$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ lscpu
contributed by < bebo1010 >
AAA
(a) /* no operation */
(b) n->pprev = first
(c) n->next = first
(d) n->pprev = n
首先我注意到一件事情,(b)和(d)是不可選的選項
pprev 是指標的指標,而 first 和 n 的型態是指標
Jim Huang changed 3 years agoView mode Like Bookmark