dotnet / dotnet/machinelearning

Add ability to concatenate 2 IDataViews.

Open
#6,134 10 comments 0 reactions 0 assignees View on GitHub
area-Core enhancement usability
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

I have:

- IDataView trainingData
- IDataView testData

I want to combine trainingData and testData
`IDataView combinedData = trainingData + testData;`

Finally, I want to retrain the model with it.
**Q1. Is there are way to combine multiple IDataViews without converting to DataFrame?**

**Q2. What is the syntax for combining IDataViews converted as DataFrame. I am trying to do something like this:**
```
DataFrame dfTrain = trainingData.ToDataFrame(-1);
DataFrame df2 = testdata.ToDataFrame(-1);
df.Add(df2.Rows);
```

The [sample in machinelearning-samples](https://github.com/dotnet/machinelearning-samples/blob/ba98d520e67a2840a3c50410885a24f361632567/samples/csharp/getting-started/AdvancedExperiment_AutoML/AdvancedTaxiFarePrediction/Program.cs#L194) re-reads the data from a file source. However, it the data might not always be in a file, or the big may be very big

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.