/* * File: DatasetCreator.java * Author: Justin Basilico * Course: PO CS 152: Neural Networks * Assignment: Final Project * Updated: 2001.12.18 * Created: 2001.12.05 * * Description: * This file contains the DatasetCreator abstract class, which is just a * program for creating the datasets used in the program. * * Copyright: Justin Basilico (2001). */ import java.io.*; import java.util.Iterator; import java.util.LinkedList; import java.util.Random; /** * DatasetCreator abstract class * * This abstract class implements a program for creating datasets for the * simulator sigma-pi network to simulate. The user specifies the architecture * of the fully-connected feed-forward network of sigma units with linear * activation functions and the number of such networks to create and it * creates a dataset of that many random networks of that architecture and * saves them in a specified file that can be read in by the DatasetReader * class. The created dataset has input that is the input of the network to * simulate plus all of the weights in that network. The target output is * the output that the network produces on that input. * * To run the program, just do * java DatasetCreator * where the parameters are: * * -f * This parameter specifies the file to write the dataset into. It must be * given for the dataset to be created. * * -n * This parameter specifies the number of random networks to create in the * dataset. It must be at least 1. The default is 100. * * -i * This parameter specifies the number of units on the input layer of the * network. It must be at least 1. The default is 2. * * -o * This parameter specifies the number of units on the output layer of the * network. It must be at least 1. The default is 1. * * -h