CoolFace
Apppublic

Juliabelloni/weather-forecasting

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
fnn.cpython-311.pyc15 linesDownload Raw Back to __pycache__
1�

2��f���@�ddlZddlmZddlmZGd�d��ZdS)�N)�keras)�layersc�<�eZdZd�Zddededefd�Zdd3edefd�Zd
S)�NNc��dS)N�)�selfs �E/Users/juliabelloni/Desktop/ML_industry/ML4IProject/src/models/fnn.py�__init__zNN.__init__s�����adam� �N��	optimizer�units�shapec���tjtj|���tj|d���tjdd���tjd��g��}|�|d���|S)N)r�relu��4activation���mean_squared_error)r�loss)r�5Sequentialr�Input�Dense�compile)r	rrr�models     r6�fnnzNN.fnn7sv��� ���5�)�)�)���U�v�6�6�6���R�F�3�3�3���Q���	"8����	�
�
�	�0D�
�E�E�E��r�9�h_units�input_shapec���tjtj||d���tjdd���g��}|�ddtj���g���||_|S)	N�tanh)rr$rr�linearrrr
)rr�metrics)	rrr�	SimpleRNNrrr(�RootMeanSquaredError�_rnn)r	r#r$r s    r10�rnnzNN.rnns�������7�{�f�V�V�V��L��h�/�/�/� 11����	�
�
�/�6��}�9�9�;�;�<�	�	>�	>�	>���	��rN)r
rr)r"r)	�__name__�12__module__�__qualname__r�str�int�tupler!r,rrr13rrsx������
�
�
���C����%�����	�	�3�	�%�	�	�	�	�	�	rr)�14tensorflow�tfr�tensorflow.kerasrrrrr15�<module>r6sg������������#�#�#�#�#�#����������r