public ModelAnalyser(IAppSettings appSettings, ITermSelector termSelector, IFeatureSelector featureSelector, IModelBuilder modelBuilder) { _appSettings = appSettings; _termSelector = termSelector; _featureSelector = featureSelector; _modelBuilder = modelBuilder; }
public void Configure( ISubscribeMessageHandlers configuration, IFeatureSelector featureSelector, IDeliverMessages bus, IEventSourcedRepository repository) { this.Repository = repository; configuration.SubscribeCommandHandler <CreateGiftcard>(this.HandleAsync); configuration.SubscribeCommandHandler <ActivateGiftcard>(this.HandleAsync); configuration.SubscribeCommandHandler <RedeemGiftcard>(this.HandleAsync); configuration.SubscribeCommandHandler <LoadGiftcard>(this.HandleAsync); configuration.SubscribeEventHandler <GiftcardCreated>(this.cardNumberEventHandler.HandleAsync); configuration.SubscribeEventHandler <GiftcardCreated>(this.giftcardOverviewEventHandler.HandleAsync); configuration.SubscribeEventHandler <GiftcardActivated>(this.giftcardOverviewEventHandler.HandleAsync); configuration.SubscribeEventHandler <GiftcardRedeemed>(this.giftcardOverviewEventHandler.HandleAsync); configuration.SubscribeEventHandler <GiftcardLoaded>(this.giftcardOverviewEventHandler.HandleAsync); configuration.SubscribeEventHandler <GiftcardCreated>(this.giftcardTransactionEventHandler.HandleAsync); configuration.SubscribeEventHandler <GiftcardActivated>(this.giftcardTransactionEventHandler.HandleAsync); configuration.SubscribeEventHandler <GiftcardRedeemed>(this.giftcardTransactionEventHandler.HandleAsync); configuration.SubscribeEventHandler <GiftcardLoaded>(this.giftcardTransactionEventHandler.HandleAsync); }
public SimpleClassifierBuilder(IClassificationAlgorithmBuilder classificationAlgorithmBuilder, IFeatureSelector featureSelector, ISampler sampler, ITextDocumentConverter textDocumentConverter) { this.classificationAlgorithmBuilder = classificationAlgorithmBuilder; this.featureSelector = featureSelector; this.textDocumentConverter = textDocumentConverter; this.sampler = sampler; }
protected override void SetUp() { base.SetUp(); problemService = Container.Get<IProblemService>(); featureSelector = Container.Get<IFeatureSelector>(); localStorageHandler = Container.Get<ILocalStorageHandler>(); }
protected BaseSubsetSelector(TOptions options, IHostEnvironment env, string name) { Contracts.CheckValue(env, nameof(env)); env.CheckValue(options, nameof(options)); env.CheckNonWhiteSpace(name, nameof(name)); Host = env.Register(name); BaseSubsetSelectorOptions = options; FeatureSelector = BaseSubsetSelectorOptions.FeatureSelector.CreateComponent(Host); }
protected BaseSubsetSelector(TArgs args, IHostEnvironment env, string name) { Contracts.CheckValue(env, nameof(env)); env.CheckValue(args, nameof(args)); env.CheckNonWhiteSpace(name, nameof(name)); Host = env.Register(name); Args = args; FeatureSelector = Args.FeatureSelector.CreateComponent(Host); }
public GlobalDocumentDataBuilderUserControl() { InitializeComponent(); var serviceProvider = DependencyResolver.GetServices().BuildServiceProvider(); documentDataBusinessLogic = serviceProvider.GetService <IDocumentDataBusinessLogic>(); featureSelector = serviceProvider.GetService <IFeatureSelector>(); topicPredictor = serviceProvider.GetService <ITopicPredictor>(); documentDataDisplayUserControl = new DocumentDataDisplayUserControl(); panelDocumentDataDisplayUserControl.Controls.Add(documentDataDisplayUserControl); UpdateRunButtonEnabledProperty(); SetStatusLabel("Waiting for input", Color.DodgerBlue); filepathsToUseForDocumentData = new List <string>(); }
// Extract data with the given generic criteria public void Extract( ISampleSelector sampleSelector, IFeatureSelector featureSelector ) { // TODO: Change to Q or Y data // Get the table of financial data Table<QLSample> qlSamples = dc.GetTable<QLSample>( ); // copy the data to the list of training cases data = new ClassificationData( ); foreach (QLSample sample in qlSamples) { // Apply the sample selection criteria if (sampleSelector.Select( sample )) { // Apply the feature selection criteria data.Samples.Add( featureSelector.Select( sample ) ); } } }
// Extract data with the given generic criteria public void Extract( ISampleSelector sampleSelector, IFeatureSelector featureSelector) { // TODO: Change to Q or Y data // Get the table of financial data Table <QLSample> qlSamples = dc.GetTable <QLSample>( ); // copy the data to the list of training cases data = new ClassificationData( ); foreach (QLSample sample in qlSamples) { // Apply the sample selection criteria if (sampleSelector.Select(sample)) { // Apply the feature selection criteria data.Samples.Add(featureSelector.Select(sample)); } } }