neuropercolation/examples/Simulate2Layers.py
2023-08-23 16:25:27 +02:00

37 lines
1.1 KiB
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 Simulate2Layers, Simulate4Layers
eps_space = np.linspace(0.005,0.5,100)
#eps_space = np.linspace(0.135,0.15,4)
for dim in [8]:
for eps in eps_space:
eps = round(eps,3)
sim = Simulate4Layers(dim,
eps,
steps=100100,
draw=None,
save='all',
path=f'/cloud/Public/_data/neuropercolation/4lay/steps=100100/dim={dim:02}/',
)
print(f'Done eps={eps:.3f} with dim={dim} at {datetime.now()}')
for eps in eps_space:
eps = round(eps,3)
sim = Simulate2Layers(dim,
eps,
steps=100100,
draw=None,
save='all',
path=f'/cloud/Public/_data/neuropercolation/2lay/steps=100100/dim={dim:02}/',
)
print(f'Done eps={eps:.3f} with dim={dim} at {datetime.now()}')