public DashboardDataController(PageModelBuilder pageModelBuilder, IInitialiser initialiser, ICanReload[] reloads) { _initialiser = initialiser; _reloads = reloads; _initialiser.Load(); _pageModelBuilder = pageModelBuilder; }
public SystemDataController(IInitialiser systemInitialiser, IErrorSummaryWindow errorSummary, ISystemEventSummaryWindow eventSummaryWindow) { _initialiser = systemInitialiser; _initialiser.Load(); _errorSummary = errorSummary; _eventSummaryWindow = eventSummaryWindow; }
public static void Set(IInitialiser init) { if (_initialiser == null) { _initialiser = init; } }
private void InitialiseWeights(IInitialiser <float> initialiser, int amountOfWeights) { Weights = new float[amountOfWeights]; for (var weight = 0; weight < amountOfWeights; weight++) { Weights[weight] = initialiser.GenerateNewValue(); } }
public App(IConfiguration config, IInitialiser initialiser, IUserStatus userStatus, Floor floor, IElevatorProcessing elevatorProcessing) { _config = config; _initialiser = initialiser; _floor = floor; _userStatus = userStatus; _elevatorProcessing = elevatorProcessing; }
public ReedSolomon(IInitialiser initialiser) { if (initialiser == null) throw new ArgumentNullException("initialiser", "Polynomial initialiser cannot be null."); _Initialiser = initialiser; InitaliseLogTables(); _Coefficients = new CoefficientsCollection(); }
public ReedSolomon(IInitialiser initialiser) { if (initialiser == null) { throw new ArgumentNullException("initialiser", "Polynomial initialiser cannot be null."); } _Initialiser = initialiser; InitaliseLogTables(); _Coefficients = new CoefficientsCollection(); }
public SystemDataController(IInitialiser systemInitialiser, IErrorSummaryWindow errorSummary, ISystemEventSummaryWindow eventSummaryWindow, ChanelDataAdjustment chanelDataAdjustment) { _initialiser = systemInitialiser; _initialiser.Load(); _errorSummary = errorSummary; _eventSummaryWindow = eventSummaryWindow; _chanelDataAdjustment = chanelDataAdjustment; }
public FiringNeuron(Coordinate location, int amountOfWeights, IActivationFunction activationFunction, IInitialiser <float> weightInitialiser = null, IInitialiser <float> biasInitialiser = null) { _activationFunction = activationFunction; NeuronLocation = location; InitialiseWeights(weightInitialiser ?? new Initialiser(), amountOfWeights); InitialiseBias(biasInitialiser ?? new Initialiser()); }
/// <inheritdoc /> public void AddInitialiser(string identifier, IInitialiser initialiser) { if (identifier == null) { throw new ArgumentNullException(nameof(identifier)); } if (initialiser == null) { throw new ArgumentNullException(nameof(initialiser)); } if (_initialisers.ContainsKey(identifier)) { throw new InvalidOperationException($"Cannot add duplicate identifier {identifier} for initialiser {initialiser}," + $" identifier is already bound to initialiser {_initialisers[identifier]}"); } _initialisers.Add(identifier, initialiser); }
private void InitialiseNetwork(IComputationHandler handler, out int initialisedNumberCount, out int initialisedNDArrayCount) { Network.Initialise(handler); initialisedNDArrayCount = 0; initialisedNumberCount = 0; RegistryResolver networkResolver = new RegistryResolver(Network.Registry.Get <IRegistry>("layers")); List <string> orderedInitialiserIdentifiers = _initialisers.Keys.ToList(); orderedInitialiserIdentifiers.Sort(RegistryUtils.CompareIdentifierSpecificityAscending); foreach (string identifier in orderedInitialiserIdentifiers) { object[] values = networkResolver.ResolveGet(identifier, new object[0]); IInitialiser initialiser = _initialisers[identifier]; foreach (object value in values) { INDArray array = value as INDArray; if (array != null) { initialiser.Initialise(array, handler, Sigma.Random); initialisedNDArrayCount++; } else { INumber number = value as INumber; if (number != null) { initialiser.Initialise(number, handler, Sigma.Random); initialisedNumberCount++; } } } } }
void Init(IInitialiser initialiser) { _store = initialiser.Initialise(); }
private void InitialiseBias(IInitialiser <float> initialiser) { Bias = initialiser.GenerateNewValue(); }
public Foo(IInitialiser i) { this.isInitalised = false; this.i = i; }