Skip to content

How do I Adapt models in Python

Allison Brucker (Resources Online) edited this page May 30, 2017 · 5 revisions

This page has migrated to our new site. Please update any bookmarks.

Read and modify the training weights from Python

Read and modify the training weights from Python

from cntk import *
p=parameter(5, init=glorot_uniform())

p.value
>>>result: array([-0.7146188 ,  0.59619093,  0.95851505,  0.29351783,  0.13692594], dtype=float32)

p.value = np.ones(5)
Clone this wiki locally