Beispiel #1
0
 private static void DatetimeExploration(ExplorationScope scope)
 {
     scope.AddPublisher <LinearTimeBuckets>();
     scope.AddPublisher <CyclicalTimeBuckets>();
     scope.AddPublisher <DatetimeDistributionComponent>();
     scope.AddPublisher <DatetimeGeneratorComponent>();
 }
Beispiel #2
0
 protected override void Configure(ExplorationScope scope, ExplorerContext context)
 {
     if (context.Columns.Length != 1)
     {
         throw new InvalidOperationException(
                   $"{nameof(TypeBasedScopeBuilder)} expects a single-column context, got {context.Columns.Length} columns.");
     }
     CommonConfiguration(scope);
     ColumnConfiguration(scope, context);
 }
Beispiel #3
0
 private static void NumericExploration(ExplorationScope scope)
 {
     scope.AddPublisher <HistogramSelectorComponent>();
     scope.AddPublisher <MinMaxFromHistogramComponent>();
     scope.AddPublisher <QuartileEstimator>();
     scope.AddPublisher <AverageEstimator>();
     scope.AddPublisher <MinMaxRefiner>();
     scope.AddPublisher <NumericSampleGenerator>();
     scope.AddPublisher <DistributionAnalysisComponent>();
     scope.AddPublisher <DescriptiveStatsPublisher>();
 }
Beispiel #4
0
        // Disabling this because the compiler can't infer Action<ExplorationScope>.
#pragma warning disable IDE0007 // Use var instead of explicit type
        private static void ColumnConfiguration(ExplorationScope scope, ExplorerContext context)
        {
            Action <ExplorationScope> configure = context.ColumnInfo.Type switch
            {
                DValueType.Integer => NumericExploration,
                DValueType.Real => NumericExploration,
                DValueType.Text => TextExploration,
                DValueType.Timestamp => DatetimeExploration,
                DValueType.Date => DatetimeExploration,
                DValueType.Datetime => DatetimeExploration,
                DValueType.Bool => BoolExploration,
                _ => throw new InvalidOperationException($"Cannot explore column type {context.ColumnInfo.Type}."),
            };

            configure(scope);
        }
Beispiel #5
0
 private static void TextExploration(ExplorationScope scope)
 {
     scope.AddPublisher <EmailCheckComponent>();
     scope.AddPublisher <TextGeneratorComponent>();
     scope.AddPublisher <TextLengthDistribution>();
 }
Beispiel #6
0
#pragma warning restore IDE0007 // Use var instead of explicit type

        private static void BoolExploration(ExplorationScope scope)
        {
        }
Beispiel #7
0
 private static void CommonConfiguration(ExplorationScope scope)
 {
     scope.AddPublisher <ExplorationInfo>();
     scope.AddPublisher <DistinctValuesComponent>();
     scope.AddPublisher <CategoricalSampleGenerator>();
 }
 public MultiColumnExploration(ExplorationScope scope)
     : base(scope)
 {
 }