Effacer les filtres
Effacer les filtres

I have two different ground truth datasets in my workspace

1 vue (au cours des 30 derniers jours)
BASHIR AHMAD RASHEEDY
BASHIR AHMAD RASHEEDY le 25 Oct 2023
Réponse apportée : Venu le 13 Déc 2023
Greetings, everyone,
I have a question regarding the combination of two distinct ground truth datasets, each with different classes. I'm looking for a way to merge them into a single file for training data. Which function or method can be utilized for this purpose? Your assistance is greatly appreciated.
Thank you in advance.

Réponses (1)

Venu
Venu le 13 Déc 2023
To merge two distinct ground truth datasets with different classes into a single file for training data, you can use either "vertcat" or "outerjoin" depending on the structure of your datasets.
If the datasets have the same columns and you simply want to stack the rows together, you can use "vertcat":
combinedData = vertcat(dataset1, dataset2);
If the datasets have different columns and you need to align them based on a common key or index, you can use "outerjoin":
combinedData = outerjoin(dataset1, dataset2, 'MergeKeys', true);
Find the documentation below for reference.
Hope this helps!

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by