Beispiel #1
0
 public PatternMiningBestGuesserWithRadius(
     HostnamePatternMiner miner,
     Dictionary <string, Dictionary <PatternRule, PatternMiningCoordinates> > reducedRules,
     int distanceThresholdKm)
 {
     this.miner               = miner;
     this.reducedRules        = reducedRules;
     this.distanceThresholdKm = distanceThresholdKm;
 }
 public PatternMiningBestGuesser(
     HostnamePatternMiner miner,
     Dictionary <string, Dictionary <PatternRule, PatternMiningCoordinates> > reducedRules,
     int distanceThresholdKm,
     bool forceIntersect)
 {
     this.miner               = miner;
     this.reducedRules        = reducedRules;
     this.distanceThresholdKm = distanceThresholdKm;
     this.forceIntersect      = forceIntersect;
 }
Beispiel #3
0
        public HostnamePatternsAddOnFeaturesGenerator(FeaturesConfig featuresConfig,
                                                      HostnamePatternMiner miner,
                                                      Dictionary <string, Dictionary <PatternRule, PatternMiningCoordinates> > hostnamePatternRules) : base(featuresConfig)
        {
            this.miner = miner;
            this.hostnamePatternRules = hostnamePatternRules;

            FeatureDefaults = new Features()
            {
                { CityFeatureType.HostnamePatternMatch, false },
            };

            FeatureDefaultsValueTypes = new FeatureValueTypes()
            {
                { CityFeatureType.HostnamePatternMatch, typeof(bool) },
            };

            FeatureGranularities = new FeatureGranularities()
            {
                { CityFeatureType.HostnamePatternMatch, FeatureGranularity.Discrete }
            };
        }
        public HostnamePatternsFeaturesGenerator(
            FeaturesConfig featuresConfig,
            HostnamePatternMiner miner,
            Dictionary <string, Dictionary <PatternRule, PatternMiningCoordinates> > hostnamePatternRules) : base(featuresConfig)
        {
            this.miner = miner;
            this.hostnamePatternRules = hostnamePatternRules;

            if (this.FeaturesConfig.NullDefaultsAllowed)
            {
                FeatureDefaults = new Features()
                {
                    { CityFeatureType.HostnamePatternMatch, false },
                    { CityFeatureType.HostnamePatternConfidence, (float?)null }
                };
            }
            else
            {
                FeatureDefaults = new Features()
                {
                    { CityFeatureType.HostnamePatternMatch, false },
                    { CityFeatureType.HostnamePatternConfidence, (float?)0 }
                };
            }

            FeatureDefaultsValueTypes = new FeatureValueTypes()
            {
                { CityFeatureType.HostnamePatternMatch, typeof(bool) },
                { CityFeatureType.HostnamePatternConfidence, typeof(float?) }
            };

            FeatureGranularities = new FeatureGranularities()
            {
                { CityFeatureType.HostnamePatternMatch, FeatureGranularity.Discrete },
                { CityFeatureType.HostnamePatternConfidence, FeatureGranularity.Continuous }
            };
        }