summaryrefslogtreecommitdiffstats
path: root/experiments/setup3.py
diff options
context:
space:
mode:
authorBen Green <ben@SEASITs-MacBook-Pro.local>2015-06-22 13:38:12 -0400
committerBen Green <ben@SEASITs-MacBook-Pro.local>2015-06-22 13:38:12 -0400
commitd99879dc3d6839b00f4b325320fe2b992391b915 (patch)
tree570597ea2e30d986c0cd891b8a87620ebb6d85e3 /experiments/setup3.py
parentb26412ed5a3e08e9dc32fc73c27c42be54d82aa8 (diff)
downloadcriminal_cascades-d99879dc3d6839b00f4b325320fe2b992391b915.tar.gz
Added ml3, where we don’t consider edges from victims to non-victims.
Also playing around with only allowing most likely parent to try and infect. Still working to see if some variant produces good results that allow us to determine seeds/non-seeds.
Diffstat (limited to 'experiments/setup3.py')
-rw-r--r--experiments/setup3.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/experiments/setup3.py b/experiments/setup3.py
new file mode 100644
index 0000000..f89759b
--- /dev/null
+++ b/experiments/setup3.py
@@ -0,0 +1,12 @@
+# compile with: python setup.py build_ext --inplace
+
+from distutils.core import setup
+from Cython.Build import cythonize
+import numpy
+
+setup(
+ ext_modules = cythonize("ml3.pyx"),
+ include_dirs=[numpy.get_include()]
+
+)
+