Skip to content
Snippets Groups Projects
Commit 8f6c0855 authored by chrysanthopoulou's avatar chrysanthopoulou
Browse files

Add some more mic working examples

parent 4dcb7335
No related branches found
No related tags found
No related merge requests found
import numpy as np
from minepy import pstats, cstats
import time
np.random.seed(0)
# build the X matrix, 8 variables, 320 samples
X = np.random.rand(8, 320)
# build the Y matrix, 4 variables, 320 samples
Y = np.random.rand(4, 320)
# compute pairwise statistics MIC_e and normalized TIC_e between samples in X, B=9, c=5
mic_p, tic_p = pstats(X, alpha=9, c=5, est="mic_e")
# compute statistics between each pair of samples in X and Y
mic_c, tic_c = cstats(X, Y, alpha=9, c=5, est="mic_e")
print("normalized TIC_e (X):")
print(tic_p)
print("MIC_e (X vs. Y):")
print(mic_c)
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
......@@ -14,6 +14,6 @@
#python3 stylo_sing.py
#source fanfic_venv/bin/activate
python3 example_2.py
python3 example_3.py
#deactivate
#python3 fanfic_preprocessing
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment