-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
65 lines (41 loc) · 983 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package main
import (
"encoding/json"
"fmt"
"github.com/LuKuuu/Kun/LKmath"
"math/rand"
"runtime"
"time"
)
func main() {
fmt.Printf("%v\n", time.Now())
rand.Seed(time.Now().UnixNano())
m:=LKmath.NewEmptyMatrix(3,4)
s,_ :=json.Marshal(m)
fmt.Printf("%s\n",s)
b:=LKmath.NewEmptyMatrix(3,4)
json.Unmarshal(s, &b)
fmt.Printf("%d",cap(b.Cell))
//neuralNetworkData :=io.NewNeuralNetworkData()
//neuralNetworkData.ConnectToDatabase("mysql", "root:cjkj@tcp(127.0.0.1:3306)/heart")
//
//example.TestOfNormalEquation()
//example.TestOfLogisticRegression()
//example.TestOfLinearEquation()
//example.TestOfNeuralNetwork()
//
//m :=LKmath.NewRandomMatrix(true, 3,3,0,1)
//m.Hprint("m")
//
//sm :=LKmath.ScalarMatrix(m, 3)
//sm.Hprint("sm")
//
//n :=LKmath.SqueezedAverageRowMatrix(m)
//n.Hprint("n")
//example.Handwriting_test()
//example.Test()
//example.TestOfLogisticRegression()
}
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}