The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Bregman Divergences (Mahalanobis Distance) in Cross Distances operator not working

amitdamitd Member, University Professor Posts: 49 Maven
edited November 2021 in Help
The Bregman Divergences (Mahalanobis Distance) in the Cross Distances operator. Given below is the stack trace.

Exception: java.lang.NullPointerException
Message: null
Stack trace:

  Jama.Matrix.times(Matrix.java:742)
  com.rapidminer.tools.math.similarity.divergences.MahalanobisDistance.calculateDistance(MahalanobisDistance.java:49)
  com.rapidminer.tools.math.similarity.BregmanDivergence.calculateSimilarity(BregmanDivergence.java:54)
  com.rapidminer.tools.math.similarity.DistanceMeasure.calculateSimilarity(DistanceMeasure.java:267)
  com.rapidminer.operator.similarity.CrossDistancesOperator.doWork(CrossDistancesOperator.java:156)
  com.rapidminer.operator.Operator.execute(Operator.java:1023)
  com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
  com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:805)
  com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:800)
  java.security.AccessController.doPrivileged(Native Method)
  com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:800)
  com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:423)
  com.rapidminer.operator.Operator.execute(Operator.java:1023)
  com.rapidminer.Process.executeRoot(Process.java:1464)
  com.rapidminer.Process.lambda$executeRootInPool$5(Process.java:1443)
  com.rapidminer.studio.concurrency.internal.AbstractConcurrencyContext$AdaptedCallable.exec(AbstractConcurrencyContext.java:362)
  java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
  java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
  java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
  java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)
Tagged:

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist
    Hi,
    can you please provide an example process. this needs to be something specific, since MahalnobisDistance is used quite a lot. My thought is an uninvertable CovarianceMatrix, which results in a NPE rather than a readable usererror.

    BR,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • amitdamitd Member, University Professor Posts: 49 Maven
    I have attached a sample process with Iris dataset.
Sign In or Register to comment.