Skip to content

Commit

Permalink
balance using parity
Browse files Browse the repository at this point in the history
  • Loading branch information
neurlang authored and Your Name committed Aug 15, 2024
1 parent 5194bb4 commit 78e7c26
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions datasets/isvirus/virus.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ func (i *Input) Feature(n int) uint32 {
}

func (i *Input) Parity() bool {
if parity {
return false
}


var parity int

for _, b := range *i {
Expand Down Expand Up @@ -59,12 +64,10 @@ func decode(hexString string) (value [35]byte) {
return value
}

var parity = true

func Balance() {
// Loop through true random (clean)
for i := len(clean); i < len(virus); i++ {
Inputs = append(Inputs, randomize())
Outputs = append(Outputs, false)
}
parity = false
}

func init() {
Expand Down

0 comments on commit 78e7c26

Please sign in to comment.