neuropercolation/examples/Simulate1Layer.py
2023-08-28 22:04:55 +02:00

26 lines
808 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 18 19:05:04 2023
@author: astral
"""
from datetime import datetime
import numpy as np
from neuropercolation import Simulate1Layer
#eps_space = np.linspace(0.005,0.5,100)
eps_space = np.linspace(0.135,0.15,4)
for dim in [49,100]:
for eps in eps_space:
eps = round(eps,3)
Simulate2Layers(dim,
eps,
res=2,
path=f'/cloud/Public/_data/neuropercolation/1lay/steps=100000/dim={dim:02}/',
#draw=None
).run(evolutions_per_second=30,
last_evolution_step=100000,
save_states=False)
print(f'Done eps={eps:.3f} with dim={dim} at {datetime.now()}')