Skip to content
Snippets Groups Projects
Commit b3d16d72 authored by Tizian Wenzel's avatar Tizian Wenzel
Browse files

Some more updates.

parent 79dc4c87
Branches
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ import numpy as np ...@@ -12,6 +12,7 @@ import numpy as np
from matplotlib import pyplot as plt from matplotlib import pyplot as plt
from scipy import io from scipy import io
import os import os
import matplotlib
np.random.seed(1) np.random.seed(1)
...@@ -70,6 +71,8 @@ io.savemat(path_for_results + name_dataset + '.mat', ...@@ -70,6 +71,8 @@ io.savemat(path_for_results + name_dataset + '.mat',
## Some plots ## Some plots
matplotlib.use('TKAgg')
R = np.linspace(0, 1, int(1.5*array_cv_f.shape[1])) R = np.linspace(0, 1, int(1.5*array_cv_f.shape[1]))
array_color=plt.cm.hsv(R) array_color=plt.cm.hsv(R)
...@@ -103,7 +106,7 @@ plt.legend(list_legend + ['A[0,1]', 'A[1,0]']) ...@@ -103,7 +106,7 @@ plt.legend(list_legend + ['A[0,1]', 'A[1,0]'])
plt.title('matrix entries') plt.title('matrix entries')
plt.xscale('log') plt.xscale('log')
plt.xlabel('iterations') plt.xlabel('iterations')
plt.draw() plt.show()
...@@ -16,8 +16,8 @@ source venv/bin/activate ...@@ -16,8 +16,8 @@ source venv/bin/activate
pip install --upgrade pip pip install --upgrade pip
pip3 install --ignore-installed torch==1.9.1+cpu torchvision==0.10.1+cpu torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html pip3 install --ignore-installed torch==1.9.1+cpu torchvision==0.10.1+cpu torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
scipy==1.7.3 pip3 install scipy==1.7.3
sklearn==0.0.post5 pip3 install scikit-learn==1.0.2
# Install further stuff # Install further stuff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment