How to tell two categorical arrays with different categories names are the same
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
MA
el 20 de Mzo. de 2022
Respondida: Peter Perkins
el 24 de Mzo. de 2022
Assume I have two categorical arrays as for example the following:
X=[1,1,2,3];
y=[3,3,1,2];
The two arrays have different classes names (categories) but in the classification task they have the same classes. How could I tell that the two arrays are the same (have the same categories)?
0 comentarios
Respuesta aceptada
Peter Perkins
el 24 de Mzo. de 2022
You don't have categorical arrays, you have numeric arrays. If you had categorical arrays, you'd just look at their categories.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Categorical Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!