Constructor and Description |
---|
CSPPerformanceStats() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
about()
Prints a simple status message about this object
|
void |
addResult(java.lang.String correctAnswer,
java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,java.lang.Double>> predictions)
Add results of a prediction to performance dataset.
|
void |
clear()
Removes results from previous tests.
|
double[][] |
computeListLengthCurve(double minSuccess,
int maxLength)
Compute the minimum length of a list required to find the correct structure
|
int |
NResults()
Number of crystal structure predictions that have been evaluated.
|
java.lang.String |
printCommand(java.util.List<java.lang.String> Command)
Handles more complicated printing commands.
|
java.lang.String |
printDescription(boolean htmlFormat)
Print full name of object, and a simple description of the options.
|
public int NResults()
public void addResult(java.lang.String correctAnswer, java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,java.lang.Double>> predictions)
correctAnswer
- Correct prototypepredictions
- Predicted prototypes ordered such that the most probable answer is firstpublic void clear()
public double[][] computeListLengthCurve(double minSuccess, int maxLength)
minSuccess
- Minimum probability to predict the correct structure (between 0 and 1)maxLength
- Maximum list length to evaluatepublic java.lang.String about()
Printable
public java.lang.String printDescription(boolean htmlFormat)
Printable
Example: For a model training a separate WekaRegression for intermetallics
magpie.models.regression.SplitRegression
printDescription
in interface Printable
htmlFormat
- Whether format for output to an HTML page
(e.g., <div> to create indentation) or for printing to screen.#printModel()
public java.lang.String printCommand(java.util.List<java.lang.String> Command) throws java.lang.Exception
Printable
printCommand
in interface Printable
Command
- Command specifying what to printjava.lang.Exception
- If command not understood