Skip to content

No transform pipeline fail execution #171

Closed
@Ivanidzo4ka

Description

@Ivanidzo4ka

`
public class Data
{
[ColumnName("Features")]
[VectorType(2)]
public float[] Features;

        [ColumnName("Label")]
        public float Label;
    }

    public class Prediction
    {
        [ColumnName("PredictedLabel")]
        public bool PredictedLabel;
    }

    static void Train(IEnumerable<Data> data)
    {
        var pipeline = new LearningPipeline();
        pipeline.Add(CollectionDataSource.Create(data));
        pipeline.Add(new FastForestBinaryClassifier());
        var model = pipeline.Train<Data, Prediction>();
    }

    static void Main(string[] args)
    {
        var data = new Data[1];
        data[0] = new Data();
        data[0].Features = new float[] { 0.0f, 1.0f };
        data[0].Label = false;

        Train(data);
    }

will fail in model combainer.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions