为维度的每个分类值计算特征工具特征

时间:2018-10-18 14:50:29

标签: featuretools

我想针对一(或多个)列的值生成featuretools功能。

所以代替:

<xcad:DockingManager
    x:Name="DockingManagerDockView"
    ActiveContent="{Binding ActiveToolsPane, Mode=TwoWay}"
    AnchorablesSource="{Binding AnchorableSource}"
    DocumentsSource="{Binding DocumentSource}">
    <xcad:DockingManager.LayoutUpdateStrategy>
        <Pane:LayoutInitializer />
    </xcad:DockingManager.LayoutUpdateStrategy>
    <xcad:DockingManager.Resources>
        <DataTemplate DataType="{x:Type ViewModels:ExplorerViewModel}">
            <Views:ExplorerView />
        </DataTemplate>
        <Style TargetType="avalonDockControls:AnchorablePaneTitle">
            <Setter Property="BorderThickness" Value="0"/>
        </Style>
    </xcad:DockingManager.Resources>
    <xcad:DockingManager.AnchorableTitleTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal">
                <Image Margin="2" Source="{Binding IconSource}" />
                <TextBlock
                    FontSize="12"
                    FontWeight="Bold"
                    Text="{Binding Title}" />
            </StackPanel>
        </DataTemplate>
    </xcad:DockingManager.AnchorableTitleTemplate>

    <xcad:DockingManager.AnchorableHeaderTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal">
                <Image Margin="2" Source="{Binding IconSource}" />
                <TextBlock
                    FontSize="12"
                    FontWeight="Bold"
                    Text="{Binding Title}" />
            </StackPanel>
        </DataTemplate>
    </xcad:DockingManager.AnchorableHeaderTemplate>
    <xcad:DockingManager.DocumentHeaderTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding IconSource}" />
                <TextBlock
                    FontSize="12"
                    FontWeight="Bold"
                    Text="{Binding Title}" />
            </StackPanel>
        </DataTemplate>
    </xcad:DockingManager.DocumentHeaderTemplate>
    <xcad:DockingManager.LayoutItemContainerStyleSelector>
        <Pane:PanesStyleSelector>
            <Pane:PanesStyleSelector.ToolStyle>
                <Style TargetType="{x:Type xcad:LayoutAnchorableItem}">                        
                    <Setter Property="Visibility" Value="{Binding Model.IsVisible, Mode=TwoWay, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter={x:Static Visibility.Hidden}}" />
                    <Setter Property="ContentId" Value="{Binding Model.ContentId}" />
                    <Setter Property="FlowDirection" Value="RightToLeft" />
                    <Setter Property="UseLayoutRounding" Value="False" />
                    <Setter Property="IconSource" Value="{Binding Model.IconSource}" />
                    <Setter Property="IsHitTestVisible" Value="True" />
                    <Setter Property="Title" Value="{Binding Model.Title}" />
                </Style>
            </Pane:PanesStyleSelector.ToolStyle>
            <Pane:PanesStyleSelector.FileStyle>
              <Style TargetType="{x:Type xcad:LayoutItem}">
                    <Setter Property="Visibility" Value="{Binding Model.IsVisible, Mode=TwoWay, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter={x:Static Visibility.Hidden}}" />                    
                    <Setter Property="Title" Value="{Binding Model.Title}" />
                    <Setter Property="ContentId" Value="{Binding Model.ContentId}" />
                    <Setter Property="CanClose" Value="{Binding Model.CanClose}" />
                    <Setter Property="IconSource" Value="{Binding Model.IconSource}" />
                    <Setter Property="CanFloat" Value="{Binding Model.CanFloat}" />
                    <Setter Property="Margin" Value="5" />
                </Style>
            </Pane:PanesStyleSelector.FileStyle>
        </Pane:PanesStyleSelector>
    </xcad:DockingManager.LayoutItemContainerStyleSelector>
    <xcad:LayoutRoot>
        <xcad:LayoutPanel>
            <xcad:LayoutDocumentPane />
            <xcad:LayoutAnchorablePane Name="Explorer" />                
        </xcad:LayoutPanel>
    </xcad:LayoutRoot>
  </xcad:LayoutRoot>
</xcad:DockingManager>

我很想得到:

User | max(value) | mode(cat)
--------------------------------
 1     | 5        | A
 2     | 5        | B
 3     | 5        | B
 4     | 5        | A

5只是一个占位符,但我希望我的意图很明确。 Featuretools中是否有功能/设置来计算像这样的特征?

0 个答案:

没有答案