-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPBGNeuralNetwork.h
More file actions
33 lines (24 loc) · 803 Bytes
/
PBGNeuralNetwork.h
File metadata and controls
33 lines (24 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// PBGNeuralNetwork.h
// neurosis
//
// Created by Patrick B. Gibson on 27/10/07.
// Copyright 2007 Patrick B. Gibson. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface PBGNeuralNetwork : NSObject {
int neuronCounter;
double learningRate;
double sumSquredError;
NSMutableArray *hiddenLayersArray;
NSMutableArray *inputsArray;
NSMutableArray *outputsArray;
}
// Designated Initializer. For now, hidden layers are assumed to be the same size as the input layer.
- (id)initWithInputs:(int)inputCount outputs:(int)outputCount hiddenLayers:(int)hiddenLayersCount;
- (void)setStartingValues:(NSArray *)values;
- (void)learnFromExpectedOutputs:(NSArray *)expectedOutputs;
- (NSArray *)computeOutputValues;
- (NSString *)outputValuesString;
- (void)printDescription;
@end