Skip to content

Commit

Permalink
Some minore syntax changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-scherba committed May 8, 2022
1 parent 6e8b61a commit 6db7b48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/sam01/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Example sam01 description:
//
// The task of this neural network is to decide what the game character should
// The task of this neural network is to decide what the game character should
// do, based on 3 parameters:
//
// - Amount of health (from 1 to 100)
Expand Down Expand Up @@ -75,7 +75,7 @@ func main() {

// Get answer from NN (weight array)
out := nn.Answer(hp, weapon, enemyCount)
answer,_ := nn.AnswerToHuman(out, humanAnswers)
answer, _ := nn.AnswerToHuman(out, humanAnswers)

// Print answer
fmt.Println(hp, weapon, enemyCount, answer, out)
Expand Down
2 changes: 1 addition & 1 deletion nn.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func Create(inputCount, hiddenCount, outputCount int, regression bool,
gonn.DumpNN(resultNN, nn)
}

// MaxFloatPosition return positon of maximum weight value in float array,
// MaxFloatPosition return position of maximum weight value in float array,
// or -1 if array is empty
func MaxFloatPosition(in []float64) int {
var max float64
Expand Down

0 comments on commit 6db7b48

Please sign in to comment.