Example #1
0
        public DataFacadeGrouped GenerateRandomDataSubset()
        {
            var dataSubset = Facade.Select(t => _random.NextDouble() < t).ToList();

            var facade = new DataFacadeGrouped();

            facade.SetMask(dataSubset);
            return(facade);
        }
Example #2
0
        public static NetworkActor BestGuessNetworkActor()
        {
            const int outputs       = 4;
            const int hiddens       = 1;
            var       controlFacade = new DataFacadeGrouped();

            controlFacade.SetMask(new List <bool>
            {
                true, false, false, true, false,
                true, false, false, true, false,
                true, false, false, true, false,
                true, false, false, true, false,
                true, false, false, true, false,
                true, false, false, true, false
            });
            return(new NetworkActor(controlFacade, new List <int> {
                hiddens
            }, outputs));
        }