Created
June 29, 2018 20:58
-
-
Save italojs/dc763a9825eb1c258292907f0c64d947 to your computer and use it in GitHub Desktop.
This file contains 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
package main | |
//[...] | |
func main() { | |
//[...] | |
classes := distinct(getCollum(records, len(records[0])-1)) | |
var train [][]string | |
var test [][]string | |
//Percent | |
p := float32(0.7) | |
//For each class, get 70% of lines | |
for i := range classes { | |
[...] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment