Beispiel #1
0
 public GetAgePredictionHandler(PredictionEnginePool <AgeInMemoryImageData, Prediction> predictionEnginePool) : base(predictionEnginePool)
 {
 }
Beispiel #2
0
 public PredictSurvived(PredictionEnginePool <ModelInput, ModelOutput> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
Beispiel #3
0
        public async static Task <RequestState> GetOrCreateUserState(this ITurnContext userContext, string botId, PredictionEnginePool <NeuralTrainInput, PredictionOutput> predictionEngine)
        {
            var          id = "AnyId";// userContext.Activity.Id;
            RequestState res;

            if (!_requestStateCache.TryGetValue(id, out res))
            {
                res = new RequestState();
                await res.Initilize(id, botId, RequestPipeline, predictionEngine);

                _requestStateCache.TryAdd(res.UserId, res);
            }
            return(res);
        }
 /// <summary>
 ///     Controller ctor
 /// </summary>
 /// <param name="consumeModel"></param>
 public SentimentAnalysisController(PredictionEnginePool <MLApplications.SentimentAnalysis.ModelInput, MLApplications.SentimentAnalysis.ModelOutput> predictionEnginePool)
 {
     this._predictionEnginePool = predictionEnginePool ?? throw new ArgumentNullException(nameof(predictionEnginePool));
 }
 public Funcs(PredictionEnginePool <SentimentIssue, SentimentPrediction> predictionEnginePool, IMetricsClient telemetryClient)
 {
     _predictionEnginePool = predictionEnginePool;
     _telemetryClient      = telemetryClient;
 }
 public ObjectDetectionService(PredictionEnginePool <ImageInputData, ImageObjectPrediction> model)
 {
     this.model = model;
 }
 public IndexModel(PredictionEnginePool <ModelInput, ModelOutput> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
 public PredictSurvived(PredictionEnginePool <Passenger, PassengerPredict> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
Beispiel #9
0
 public Function1(PredictionEnginePool <ModelInput, ModelOutput> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
 // AnalyzeSentiment class constructor
 public SentimentAnalysis(PredictionEnginePool <SentimentData, SentimentPrediction> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
 // AnalyzeSentiment class constructor
 public HttpSentimentAnalysisFunction(PredictionEnginePool <SentimentData, SentimentPrediction> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
Beispiel #12
0
 public IndexModel(ILogger <IndexModel> logger, PredictionEnginePool <ModelInput, ModelOutput> predictionEnginePool)
 {
     _logger = logger;
     this.predictionEnginePool = predictionEnginePool;
 }
Beispiel #13
0
 public BotAlpha(PredictionEnginePool <NeuralTrainInput, PredictionOutput> predictionEnginePool)
 {
     this.predictionEnginePool = predictionEnginePool;
 }
Beispiel #14
0
 public PredictController(PredictionEnginePool<SentimentData, SentimentPrediction> engine)
 {
     this.engine = engine;
 }
 public PredictorController(PredictionEnginePool <SampleObservation, SamplePrediction> predictionEnginePool)
 {
     // Get the ML Model Engine injected, for scoring
     _predictionEnginePool = predictionEnginePool;
 }
Beispiel #16
0
 public IndexModel(IWebHostEnvironment env, ILogger <IndexModel> logger, ICarModelService carFileModelService, PredictionEnginePool <ModelInput, ModelOutput> pricePredictionEnginePool)
 {
     _env                       = env;
     _logger                    = logger;
     _carModelService           = carFileModelService.GetDetails();
     CarMakeSL                  = new SelectList(_carModelService, "Id", "Model", default, "Make");
 public AnalyzeSentiment(PredictionEnginePool <SentimentIssue, SentimentPrediction> predictionEngine, BlobModelLoader modelLoader)
 {
     this.predictionEngine = predictionEngine ?? throw new ArgumentNullException(nameof(predictionEngine));
     this.modelLoader      = modelLoader;
 }
 public BankTransactionLabelService(PredictionEnginePool <Transaction, TransactionPrediction> predictionEnginePool)
 {
     // Use this when using ML.NET in WebAPI, Azure Functions and other scalable applications.
     _predictionEnginePool = predictionEnginePool;
 }
Beispiel #19
0
 public ObjectDetectionService(PredictionEnginePool <ImageInputData, TinyYoloPrediction> predictionEngine)
 {
     this.predictionEngine = predictionEngine;
 }
Beispiel #20
0
 // AnalyzeSentiment class constructor
 public AnalyzeSentiment(PredictionEnginePool <SentimentData, SentimentPrediction> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
Beispiel #21
0
 public PredictController(PredictionEnginePool <TempData, TempPrediction> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
Beispiel #22
0
 // create a PredictionEngine pool for the predict api calls
 public PredictController(PredictionEnginePool <ScriptType, ScriptTypePrediction> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
 public PredictController(PredictionEnginePool <SentimentData, SentimentPrediction> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
 public Analyze(PredictionEnginePool <OnnxInput, OnnxOutput> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
 public DetoxController(PredictionEnginePool <SampleObservation, SamplePrediction> predictionEnginePool)
 {
     _predictionEnginePool = predictionEnginePool;
 }
 public SentimentAnalyzer(PredictionEnginePool <SentimentData, SentimentPrediction> predictionEnginePool)
 {
     this.predictionEnginePool = predictionEnginePool;
 }
Beispiel #27
0
 public DigitController(PredictionEnginePool <DigitData, DigitPrediction> predictionEnginePool)
 {
     this._predictionEnginePool = predictionEnginePool;
 }
Beispiel #28
0
 public PredictionsService(PredictionEnginePool <MovieData, MoviePrediction> predictionEnginePool, IMovieMapRepository repository)
 {
     _predicitionEnginePool = predictionEnginePool;
     _repository            = repository;
 }