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
############################################################################## | |
# Author: Han-chung Lee | |
# Date: 2020-11-6 | |
# | |
# Detecting election fraud activity at Milwaukee County using Benford's Law | |
# | |
# Statistical detection of systematic election irregularities: | |
# https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3478593/ | |
############################################################################## |
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
import tensorflow as tf #We need tensorflow 2.x | |
import numpy as np | |
#The hashlength in bits | |
hashLength = 256 | |
def buildModel(): | |
#we can set the seed to simulate the fact that this network is known and doesn't change between runs | |
#tf.random.set_seed(42) | |
model = tf.keras.Sequential() |
This file has been truncated, but you can view the full file.
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
# Contains human-readable representation of NFactor::TCodeGenInput message (defined in factors_metadata.proto) | |
Group: [ | |
"Datetime", | |
"Domain", | |
"RapidClicks", | |
"RegHostStatic", | |
"RegDocStatic", | |
"Regex", | |
"LinkBM25", |
OlderNewer