You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The vectorizer fromBreezeVector is not able to handle data views such as Transpose. In Scala, all row vectors are represented as a view, e.g. Transpose[Vector[T]].
Either a check should be implemented to ensure that views are not passed in or we can automatically apply the filter (example solution by @Andreas-Forster ):
if ( breeze.data.size == dim ) {
EuclideanVector.apply[D](breeze.data)
} else {
EuclideanVector.apply[D](breeze.copy.data)
}
The text was updated successfully, but these errors were encountered:
The vectorizer
fromBreezeVector
is not able to handle data views such asTranspose
. In Scala, all row vectors are represented as a view, e.g.Transpose[Vector[T]]
.Either a check should be implemented to ensure that views are not passed in or we can automatically apply the filter (example solution by @Andreas-Forster ):
The text was updated successfully, but these errors were encountered: