Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pbrunet@picviz-02:/home/cbodin/Workspace_Qt/Qt_GLSL/classification$ sudo clang++ pieceoforangepeel.cpp $(pkg-config --cflags --libs Qt5Core Qt5Gui libxml-2.0) -fPIE
- In file included from pieceoforangepeel.cpp:69:
- In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
- /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:154:34: error: no matching member function for call to 'Evaluate'
- double distance = metric.Evaluate(data.col(i), centroids.col(j));
- ~~~~~~~^~~~~~~~
- /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:87:3: note: in instantiation of function template specialization 'mlpack::kmeans::KMeans<mlpack::metric::MahalanobisDistance<false>, mlpack::kmeans::RandomPartition,
- mlpack::kmeans::MaxVarianceNewCluster>::Cluster<arma::Mat<double> >' requested here
- Cluster(data, clusters, assignments, centroids, initialGuess);
- ^
- pieceoforangepeel.cpp:95:7: note: in instantiation of function template specialization 'mlpack::kmeans::KMeans<mlpack::metric::MahalanobisDistance<false>, mlpack::kmeans::RandomPartition, mlpack::kmeans::MaxVarianceNewCluster>::Cluster<arma::Mat<double> >' requested here
- k.Cluster(data, 6, assignments);
- ^
- /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
- double MahalanobisDistance<false>::Evaluate(const VecType1& a,
- ^
- In file included from pieceoforangepeel.cpp:69:
- In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
- /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:210:34: error: no matching member function for call to 'Evaluate'
- double distance = metric.Evaluate(data.col(i), centroids.col(j));
- ~~~~~~~^~~~~~~~
- /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
- double MahalanobisDistance<false>::Evaluate(const VecType1& a,
- ^
- In file included from pieceoforangepeel.cpp:69:
- In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
- /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:282:31: error: no matching member function for call to 'Evaluate'
- distances(i) = metric.Evaluate(centroids.col(first),
- ~~~~~~~^~~~~~~~
- /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
- double MahalanobisDistance<false>::Evaluate(const VecType1& a,
- ^
- In file included from pieceoforangepeel.cpp:69:
- In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
- /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:326:60: error: no matching member function for call to 'Evaluate'
- distances(offset + (first - cluster)) = metric.Evaluate(
- ~~~~~~~^~~~~~~~
- /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
- double MahalanobisDistance<false>::Evaluate(const VecType1& a,
- ^
- In file included from pieceoforangepeel.cpp:69:
- In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
- /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:341:58: error: no matching member function for call to 'Evaluate'
- distances(offset + (cluster - first)) = metric.Evaluate(
- ~~~~~~~^~~~~~~~
- /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
- double MahalanobisDistance<false>::Evaluate(const VecType1& a,
- ^
- 5 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement