ayushkarnawat / profit

Exploring evolutionary protein fitness landscapes
MIT License
1 stars 0 forks source link

Convert ndarray's dtypes to their 32 counterparts #80

Closed ayushkarnawat closed 4 years ago

ayushkarnawat commented 4 years ago

Description

When serializing the dataset, save the np.ndarrays as np.float32 or np.int32 rather than as np.float64 or np.int64, respectively. This allows us to load the data into tensors of dtype float32, which is more than efficient to run+optimize the nn models.

Changes