作者查詢 / Panthalassa

總覽項目: 發文 | 留言 | 暱稱
作者 Panthalassa 在 PTT [ Python ] 看板的留言(推文), 共65則
限定看板:Python
首頁
上一頁
1
2
下一頁
尾頁
[問題] 新手請教一些音樂相關問題
[ Python ]18 留言, 推噓總分: +5
作者: phoenixlife - 發表於 2018/07/31 00:12(7年前)
13FPanthalassa: 真的很難,你可以先把訊號畫出來,看看是不是夠簡單y07/31 03:01
14FPanthalassa: 把各個單音分開來,而單音內是不是夠乾淨?07/31 03:01
[問題] 請問psychopy如何做到對抗平衡?
[ Python ]2 留言, 推噓總分: +2
作者: midorime - 發表於 2018/06/11 00:49(7年前)
1FPanthalassa: 不了解 psychopy 但覺得這問題有點偏離 python XD06/13 03:35
Re: [問題] Win10 python 3.6.1編譯問題
[ Python ]1 留言, 推噓總分: 0
作者: Dmix - 發表於 2018/04/13 15:29(7年前)
1FPanthalassa: 你需要裝 pandas04/13 15:52
[問題] callable 若非 function 即為 class 精確嗎消失
[ Python ]7 留言, 推噓總分: 0
作者: ggirls - 發表於 2018/04/08 08:44(7年前)
6FPanthalassa: 個人認為叫 instance 比 class “精確”04/08 12:12
[問題] 請問python numpy的矩陣格式
[ Python ]24 留言, 推噓總分: +6
作者: Bondrewd - 發表於 2018/04/07 14:58(7年前)
15FPanthalassa: (n,) 好處: 轉 list 會直接變成 [float]04/07 20:57
16FPanthalassa: (n,)好處: 取值的時候不用 [n,0] 直接 [n] 就好04/07 20:59
[問題] 求解有幾個位數不同的問題
[ Python ]17 留言, 推噓總分: +1
作者: Redbeansauce - 發表於 2018/04/03 01:37(7年前)
1FPanthalassa: 假定 a, b 是字串,所求:04/03 02:26
2FPanthalassa: sum([ a[i] != b[i] for i in range(len(a)) ])04/03 02:26
8FPanthalassa: 噢對!但也許應該要前面放 assert ?04/03 03:38
9FPanthalassa: 但若長度不一樣的話,用 zip 會補 None 然後算成不同04/03 03:38
10FPanthalassa: 不確定是否滿足需求...04/03 03:38
11FPanthalassa: 從原 Po 的敘述來看應該是要補 004/03 03:39
[問題] 函數、程式結構如何設計?
[ Python ]18 留言, 推噓總分: +3
作者: wallrose - 發表於 2018/04/02 20:02(7年前)
1FPanthalassa: 一點淺見... 看你有沒有需要在其他地方用到 G() ?04/02 21:23
[問題]請問關於Sklearn裡的決策樹所支援變數類型
[ Python ]21 留言, 推噓總分: +4
作者: ms0344303 - 發表於 2018/03/28 22:36(7年前)
1FPanthalassa: 像 More than 1000 那種要自己轉成數字吧?03/28 23:27
[分享] 用Python看Instagram
[ Python ]26 留言, 推噓總分: +23
作者: aznchat100 - 發表於 2018/03/26 22:12(7年前)
6FPanthalassa: 很帥XDD03/27 01:19
[問題] 向量內積
[ Python ]27 留言, 推噓總分: +6
作者: phoebejen - 發表於 2018/03/26 01:00(7年前)
2FPanthalassa: 天啊,為什麼函數要定義兩次?看起來都是在算標準差03/26 02:30
6FPanthalassa: 一個建議的寫法:03/26 13:16
7FPanthalassa: def stdDeviation(i, j):03/26 13:17
8FPanthalassa: L = len(i) (( i, j 假設長度一樣,才能內積03/26 13:17
9FPanthalassa: mean_i = sum(i)/L03/26 13:18
10FPanthalassa: mean_j = sum(j)/L03/26 13:18
11FPanthalassa: std_i = std_j = 003/26 13:19
12FPanthalassa: for x in i:03/26 13:20
13FPanthalassa: std_i += (x - mean_i)**203/26 13:20
14FPanthalassa: for x in j:03/26 13:20
15FPanthalassa: std_j += (x - mean_j)**203/26 13:21
16FPanthalassa: std_i = (std_i/L)**0.503/26 13:21
17FPanthalassa: std_j = (std_j/L)**0.503/26 13:22
18FPanthalassa: inner_product = 003/26 13:22
19FPanthalassa: for x, y in zip(i, j):03/26 13:23
20FPanthalassa: inner_product += x * y03/26 13:24
21FPanthalassa: return std_i, std_j, inner_product03/26 13:24
22FPanthalassa: https://i.imgur.com/M3gww9F.png03/26 13:42
首頁
上一頁
1
2
下一頁
尾頁