-
-
Save Zxser/5666f200738852220298d93d9c6ad20e to your computer and use it in GitHub Desktop.
CreateML 双色球
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
import CreateML | |
let 双色球神算子 = try MLTextClassifier(trainingData: [ | |
"中奖啦": [ | |
"09 11 14 20 27 30 09", | |
"02 09 14 15 16 23 10", | |
"11 16 19 22 25 30 08", | |
"02 05 06 13 16 19 03", | |
"04 09 15 16 19 27 10", | |
"06 13 17 19 23 31 12", | |
"08 10 17 20 27 30 01", | |
"01 04 09 12 15 18 05", | |
"09 16 17 19 22 26 10", | |
"01 04 06 14 28 33 01" | |
], | |
"下次再来": [ | |
"01 02 03 04 05 06 07", | |
"02 03 04 05 06 07 08", | |
"03 04 05 06 07 08 09", | |
"04 05 06 07 08 09 10", | |
"05 06 07 08 09 10 11", | |
"06 07 08 09 10 11 12", | |
"07 08 09 10 11 12 13", | |
"08 09 10 11 12 13 14", | |
"09 10 11 12 13 14 15", | |
"10 11 12 13 14 15 16" | |
] | |
]) | |
try 双色球神算子.prediction(from: "03 05 12 14 23 28 05") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment