Skip to content

Commit

Permalink
parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan-Zamfir committed May 16, 2024
1 parent 2ed0b8c commit b025c27
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
11 changes: 11 additions & 0 deletions csvData/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ func GetCSVData(path string) int{ //temp return int (cause returning columns)
}
return columns
}

//normalize:
//for i in row[x]:
// normD = (i-min(row[x]) / (max(row[x]) - min(row[x]))
// LIST.append(normD)
// the func will return float32

//z-score norm:
// normD = (i - mean) / standard deviation

//
6 changes: 3 additions & 3 deletions data/minmax.go → data/equations.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package data

func Normalize() {

}

func Minimum(arr []int) int {
min := arr[0]
Expand All @@ -20,6 +22,4 @@ func Maximum(arr []int) int{
}
}
return max
}


}
2 changes: 0 additions & 2 deletions data/normalize.go

This file was deleted.

0 comments on commit b025c27

Please sign in to comment.