|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--BP
Inner classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Field Summary | |
double[][] |
_dw
|
double[][] |
_dW
|
double |
beta
|
(package private) MyCanvas |
cv
|
double[][] |
dw
|
double[][] |
dW
|
java.awt.TextField |
epochs
|
double |
eta
|
double |
etaDOWN
|
double |
etaUP
|
double[] |
eY
|
double[] |
eZ
|
(package private) double[][] |
filew
|
(package private) double[][] |
fileW
|
(package private) int |
fileXdim
|
(package private) int |
fileYdim
|
(package private) int |
fileZdim
|
double[][] |
inpat
|
double[][] |
outpat
|
(package private) double |
pat_beta
|
(package private) double |
pat_eta
|
(package private) double |
pat_etaDOWN
|
(package private) double |
pat_etaUP
|
(package private) int |
pat_hiddim
|
(package private) int |
pat_indim
|
(package private) int |
pat_outdim
|
int |
patc
|
java.awt.TextField |
pattern_filename
|
java.util.Vector |
patterns
|
(package private) int |
totalit
|
boolean |
valid
|
double[][] |
w
|
double[][] |
W
|
java.awt.TextField |
weight_filename
|
java.awt.Scrollbar |
wsc
|
static int |
wscMAX
|
static double |
wscrealMAX
|
double[] |
X
|
int |
Xdim
|
double[] |
Xnet
|
double[] |
Y
|
int |
Ydim
|
double[] |
Ynet
|
double[] |
Z
|
int |
Zdim
|
double[] |
Znet
|
Fields inherited from class java.awt.Frame |
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis |
Fields inherited from class java.awt.Window |
active, dbg, focusMgr, inputContext, inputContextLock, nativeActive, OPENED, ownedWindowList, warningString, windowListener, windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, needsPaint, printing, printingThreads |
Fields inherited from class java.awt.Component |
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, visible, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
BP()
|
|
BP(int indim,
int hiddim,
int outdim,
double def_eta,
double def_beta,
double def_etaUP,
double def_etaDOWN)
|
|
BP(java.lang.String s)
|
|
BP(java.lang.String s,
double def_eta,
double def_beta,
double def_etaUP,
double def_etaDOWN)
|
Method Summary | |
boolean |
action(java.awt.Event evt,
java.lang.Object arg)
|
void |
addto(double[][] M,
int im,
int jm,
double[][] C)
|
(package private) double[] |
ask(double[] inp,
int size)
|
(package private) double[] |
askHidden(double[] inp,
int size)
|
void |
clearHistory()
|
void |
createNet(int indim,
int hiddim,
int outdim)
|
(package private) void |
dumpMatrix(java.lang.String title,
double[][] w,
int rows,
int cols)
|
void |
dumpNet()
|
void |
dumpPattern()
|
void |
forward()
|
boolean |
handleEvent(java.awt.Event evt)
|
void |
initNet()
|
void |
installWeight(java.lang.String with)
|
double |
learn(int p,
int step)
|
static void |
main(java.lang.String[] argv)
|
boolean |
mouseDown(java.awt.Event evt,
int x,
int y)
|
void |
multiply(double[][] M,
double[] v,
int im,
int jm,
double[] r)
|
void |
netFromPattern(java.lang.String with)
|
void |
netFromWeight(java.lang.String with)
|
void |
netFromWeight(java.net.URL base,
java.lang.String with)
|
static java.io.DataInputStream |
openfileREAD(java.lang.String fn)
|
static java.io.DataInputStream |
openfileREAD(java.net.URL base,
java.lang.String fn)
|
static java.io.DataOutputStream |
openfileWRITE(java.lang.String fn)
|
void |
presentPattern(double[] inp)
|
void |
presentPattern(int p)
|
boolean |
readPattern(java.lang.String fn)
|
boolean |
readWeight(java.lang.String fn)
|
boolean |
readWeight(java.net.URL base,
java.lang.String fn)
|
void |
redrawCanvas(java.awt.Graphics g)
|
void |
squash(double[] v,
int size,
double[] r)
|
double |
testPattern()
|
double |
testPattern(boolean verbose)
|
double |
toDouble(java.lang.String s)
|
int |
toInt(java.lang.String s)
|
void |
train(int maxiter)
|
void |
writeWeight(java.lang.String fn)
|
Methods inherited from class java.awt.Frame |
|
Methods inherited from class java.awt.Window |
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, checkNull, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, processWindowEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFont, setLayout, update, validate, validateTree |
Methods inherited from class java.awt.Component |
add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
public java.util.Vector patterns
public double[][] inpat
public double[][] outpat
public int patc
public boolean valid
public double eta
public double etaDOWN
public double etaUP
public double beta
public double[] X
public double[] Xnet
public double[] Y
public double[] Ynet
public double[] Z
public double[] Znet
public double[] eZ
public double[] eY
public double[][] W
public double[][] w
public double[][] dW
public double[][] dw
public double[][] _dW
public double[][] _dw
public int Xdim
public int Ydim
public int Zdim
public java.awt.TextField pattern_filename
public java.awt.TextField weight_filename
public java.awt.TextField epochs
public java.awt.Scrollbar wsc
public static final int wscMAX
public static final double wscrealMAX
MyCanvas cv
int totalit
int pat_indim
int pat_outdim
int pat_hiddim
double pat_eta
double pat_beta
double pat_etaUP
double pat_etaDOWN
int fileXdim
int fileYdim
int fileZdim
double[][] filew
double[][] fileW
Constructor Detail |
public BP()
public BP(int indim, int hiddim, int outdim, double def_eta, double def_beta, double def_etaUP, double def_etaDOWN)
public BP(java.lang.String s)
public BP(java.lang.String s, double def_eta, double def_beta, double def_etaUP, double def_etaDOWN)
Method Detail |
public void createNet(int indim, int hiddim, int outdim)
public void netFromPattern(java.lang.String with)
public void netFromWeight(java.lang.String with)
public void netFromWeight(java.net.URL base, java.lang.String with)
public void installWeight(java.lang.String with)
public void squash(double[] v, int size, double[] r)
public void multiply(double[][] M, double[] v, int im, int jm, double[] r)
public void addto(double[][] M, int im, int jm, double[][] C)
public void forward()
public double learn(int p, int step)
public void presentPattern(int p)
public void presentPattern(double[] inp)
double[] ask(double[] inp, int size)
double[] askHidden(double[] inp, int size)
public double testPattern()
public double testPattern(boolean verbose)
public void initNet()
public void clearHistory()
public void train(int maxiter)
public static void main(java.lang.String[] argv)
public void dumpNet()
public void dumpPattern()
public double toDouble(java.lang.String s)
public int toInt(java.lang.String s)
public static java.io.DataInputStream openfileREAD(java.lang.String fn) throws java.io.IOException
public static java.io.DataInputStream openfileREAD(java.net.URL base, java.lang.String fn) throws java.io.IOException
public static java.io.DataOutputStream openfileWRITE(java.lang.String fn) throws java.io.IOException
public boolean readPattern(java.lang.String fn)
public boolean readWeight(java.lang.String fn)
public boolean readWeight(java.net.URL base, java.lang.String fn)
void dumpMatrix(java.lang.String title, double[][] w, int rows, int cols)
public void writeWeight(java.lang.String fn)
public void redrawCanvas(java.awt.Graphics g)
public boolean mouseDown(java.awt.Event evt, int x, int y)
mouseDown
in class java.awt.Component
public boolean handleEvent(java.awt.Event evt)
handleEvent
in class java.awt.Component
public boolean action(java.awt.Event evt, java.lang.Object arg)
action
in class java.awt.Component
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |