Skip to content

Commit be9486f

Browse files
committed
[CM-1580]: Added definition of the Experiment.logCurve() methods.
1 parent 192aa13 commit be9486f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

comet-java-client/src/main/java/ml/comet/experiment/Experiment.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import ml.comet.experiment.artifact.LoggedArtifact;
55
import ml.comet.experiment.asset.LoggedExperimentAsset;
66
import ml.comet.experiment.context.ExperimentContext;
7+
import ml.comet.experiment.model.Curve;
78
import ml.comet.experiment.model.ExperimentMetadata;
89
import ml.comet.experiment.model.GitMetaData;
910
import ml.comet.experiment.model.Value;
@@ -322,6 +323,19 @@ public interface Experiment extends AutoCloseable {
322323

323324
void logText(String text);
324325

326+
/**
327+
* Allows to log x/y curve into your Comet experiment. This can be, for example, the time-series data, etc.
328+
*
329+
* @param curve the {@code Curve} object holding the data points.
330+
* @param overwrite allows to override the previously logged curve with the same name.
331+
* @param context the experiment context to be associated with data record (step, epoch, context ID).
332+
*/
333+
void logCurve(Curve curve, boolean overwrite, ExperimentContext context);
334+
335+
void logCurve(Curve curve, boolean overwrite);
336+
337+
void logCurve(Curve curve);
338+
325339
/**
326340
* Upload an asset to be associated with the experiment, for example the trained weights of a neural net.
327341
* For running experiment updates current step to one from param!

0 commit comments

Comments
 (0)