#
Personal Projects 💻
These are links/descriptions to personal projects.
#
Gut-Emotions for MHacks
#
Patent search engine in Neo4j
#
This Retype site
input: ./retype_src
output: C:/gitProjects/legolego.github.io
url: https://legolego.github.io/
cname: false
You can make this site yourself with Retype, code is here. The navigation is built-in and it's all done with markdown.
#
Temperature Records over time
#
Attempts at Advent of Code
sum = 0
for group in Lines01[:]:
group = group.split('\n')
sets = [set(x) for x in group]
#print(set.intersection(*sets))
sum += len(set.intersection(*sets))
Really good practice from a couple years ago, my attempts here.
#
PyWekaBayes
# Choose trained Weka BIFXML file
xmlfile = "D:/weka/iris.xml" # created with BayesNet, MaxNrParents=2, BIFXML file
bifreader = JavaObject(JavaObject.new_instance("weka.classifiers.bayes.net.BIFReader"))
editable = Classifier(jobject=javabridge.make_instance(
"weka/classifiers/bayes/net/EditableBayesNet",
"(Lweka/classifiers/bayes/net/BIFReader;)V",
bifreader.jwrapper.processFile(xmlfile)))
# We need to calculate the margins of all the attributes
marginCalc = JavaObject(JavaObject.new_instance("weka.classifiers.bayes.net.MarginCalculator"))
marginCalc.jwrapper.calcMargins(editable.jobject)
marginCalcNoEvidence = Serial.deepcopy(marginCalc) # could maybe get by without this, just use marginCalc()
This is a simple project showing how in Python to call the BayesNet classifier provided by Weka. A relevant Google Groups discussion is here