Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 677 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 677 Bytes

mlscripts

Scripts to be used in conjunction with FyPy to generate machine learning data, train CNNs, and post_process.

Data generation

python3.8 mlsetup.py --ntrain=10 --nhomo=0 --generate=True --solve=True --nelemx=64 --nelemy=96 --shift=0 --length=1.0 --breadth=1.5 --eltype='linelas2dnumbasri'

See mlsetup.py for explanations of arguments

Running the ML code

python3.8 ml.py --mltype=field --iptype=strainyy --nepochs=64 --mode=train --nimg=2000 --noise=1 --noisetype=none --activation=twisted_tanh --inputscale=global --boundshift=0.25 --featurescale=True

See get_args() in ml/src/argparams.py for explanations of arguments