perming-1.8.0
Supported Module:
- add set_freeze module for freezing assigned layers of pretrained model according to serial numbers of
self.model
Example:
import perming
main = perming.Box(8, 29, (60,), batch_size=256, activation='relu', inplace_on=True, solver='sgd', learning_rate_init=0.01)
main.data_loader(features, labels, random_seed=0)
# train_val, test, save in training full network about main
main.load(False, dir='../models/bitcoin.ckpt')
main.set_freeze({0:False}) # freeze the first layer of `self.model`
main.train_val(num_epochs=1, interval=100, early_stop=True)
main.test()
download:
!pip install perming==1.8.0 # in jupyter
pip install perming==1.8.0 # in cmd