Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to extract Weights, bias from trained model, and how to choose a error function ? #10

Open
automataIA opened this issue Jan 29, 2020 · 1 comment

Comments

@automataIA
Copy link

automataIA commented Jan 29, 2020

  1. How to extract Weights and bias from trained model?
  2. How to set, or choose a error function for model?

im using the same code in the example:

 IMPORT DATASET -----------------------------------
X = pd.read_feather('Input.file') ; 
Y = pd.read_feather('Target.file') ;

TRASFORMATION DATASET IN ARRAY -------------------
X = X.values.T
Y = Y.values.T
print(X.shape,Y.shape)
 NETWORK ------------------------------
net = prn.CreateNN([3,6,8])

net = prn.train_LM(X,Y,net,verbose=True,k_max=1000,E_stop=1e-5)

ADD : why with command :

W0 = net['w0']; print(W0.shape) ;
W1 = net['w']; print(W1.shape) ; 
  1. give me a shape for W0 and W1 of [80,] and not : [6x3] and [8x6] ?
  2. and normP and normY are bias, i think?
@yabata
Copy link
Owner

yabata commented Jan 31, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants