// Use designated initializer to pass network configuration and weights // to the model. Note: you don't need to specify biased units (+1 above) in the // configuration. NSArray *netConfig = @[@2, @1]; double wts[] = {-30, 20, 20}; NSData *weights = [NSData dataWithBytes:wts length:sizeof(wts)]; MLPNeuralNet *model = [[MLPNeuralNet alloc] initWithLayerConfig:netConfig weights:weights outputMode:ML