Skip to content

perming-1.8.0

Compare
Choose a tag to compare
@linjing-lab linjing-lab released this 28 Oct 10:10
· 41 commits to main since this release

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