Skip to content

Commit

Permalink
Log max likelihood obj in N2V
Browse files Browse the repository at this point in the history
  • Loading branch information
brs96 committed Dec 6, 2023
1 parent feb49db commit a49d705
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
package org.neo4j.gds.embeddings.node2vec;

import org.neo4j.gds.annotation.ValueClass;
import org.neo4j.gds.collections.ha.HugeObjectArray;
import org.neo4j.gds.core.concurrency.RunWithConcurrency;
import org.neo4j.gds.core.utils.mem.MemoryEstimation;
import org.neo4j.gds.core.utils.mem.MemoryEstimations;
import org.neo4j.gds.collections.ha.HugeObjectArray;
import org.neo4j.gds.core.utils.partition.PartitionUtils;
import org.neo4j.gds.core.utils.progress.tasks.ProgressTracker;
import org.neo4j.gds.mem.BitUtil;
Expand Down Expand Up @@ -184,7 +184,7 @@ Result train() {
.run();

double loss = tasks.stream().mapToDouble(TrainingTask::lossSum).sum();
progressTracker.logInfo(formatWithLocale("Loss %.4f", loss));
progressTracker.logInfo(formatWithLocale("Maximum likelihood objective is %.4f", loss));
lossPerIteration.add(loss);

progressTracker.endSubTask();
Expand Down

0 comments on commit a49d705

Please sign in to comment.