public class Tracer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Tracer.ColorMapper
Double to color mapper.
|
Constructor and Description |
---|
Tracer() |
Modifier and Type | Method and Description |
---|---|
static String |
asAscii(Matrix mtx,
String fmt) |
static String |
asAscii(Vector vec,
String fmt,
boolean showMeta) |
static void |
saveAsCsv(Matrix mtx,
String fmt,
String filePath)
Saves given matrix as CSV file.
|
static void |
saveAsCsv(Vector vec,
String fmt,
String filePath)
Saves given vector as CSV file.
|
static void |
showAscii(Matrix mtx) |
static void |
showAscii(Matrix mtx,
IgniteLogger log,
String fmt) |
static void |
showAscii(Matrix mtx,
String fmt) |
static void |
showAscii(Vector vec) |
static void |
showAscii(Vector vec,
IgniteLogger log) |
static void |
showAscii(Vector vec,
IgniteLogger log,
String fmt) |
static void |
showAscii(Vector vec,
String fmt) |
static void |
showClassificationDatasetHtml(DataStreamGenerator generator,
int limit,
int xIdx,
int yIdx,
boolean isLabeled)
Open browser and shows given dataset generator's data on two dimensional plane.
|
static void |
showClassificationDatasetHtml(String name,
DataStreamGenerator generator,
int limit,
int xIdx,
int yIdx,
boolean isLabeled)
Open browser and shows given dataset generator's data on two dimensional plane.
|
static void |
showHtml(Matrix mtx)
Shows given matrix in the browser with D3-based visualization.
|
static void |
showHtml(Matrix mtx,
boolean useAsciiFallback)
Shows given matrix in the browser with D3-based visualization.
|
static void |
showHtml(Matrix mtx,
Tracer.ColorMapper cm)
Shows given matrix in the browser with D3-based visualization.
|
static void |
showHtml(Matrix mtx,
Tracer.ColorMapper cm,
boolean useAsciiFallback)
Shows given matrix in the browser with D3-based visualization.
|
static void |
showHtml(Vector vec)
Shows given vector in the browser with D3-based visualization.
|
static void |
showHtml(Vector vec,
boolean useAsciiFallback)
Shows given vector in the browser with D3-based visualization.
|
static void |
showHtml(Vector vec,
Tracer.ColorMapper cm)
Shows given vector in the browser with D3-based visualization.
|
static void |
showHtml(Vector vec,
Tracer.ColorMapper cm,
boolean useAsciiFallback)
Shows given vector in the browser with D3-based visualization.
|
static void |
showRegressionDatasetInHtml(DataStreamGenerator generator,
int limit,
int xIdx)
Open browser and shows given dataset generator's data on two dimensional plane.
|
static void |
showRegressionDatasetInHtml(String name,
DataStreamGenerator generator,
int limit,
int xIdx)
Open browser and shows given dataset generator's data on two dimensional plane.
|
public static void showAscii(Vector vec, IgniteLogger log, String fmt)
vec
- Vector to show.log
- IgniteLogger
instance for output.fmt
- Format string for vector elements.public static void showAscii(Vector vec, IgniteLogger log)
vec
- Vector to show as plain text.log
- IgniteLogger
instance for output.public static void showAscii(Vector vec, String fmt)
vec
- Vector to show as plain text.fmt
- Format string for vector elements.public static String asAscii(Vector vec, String fmt, boolean showMeta)
vec
- Vector to show as plain text.fmt
- Format string for vector elements.showMeta
- Show vector type and size.public static void showAscii(Matrix mtx)
mtx
- Matrix to show as plain text.public static void showAscii(Matrix mtx, String fmt)
mtx
- Matrix
object to show as a plain text.fmt
- Format string for matrix rows.public static String asAscii(Matrix mtx, String fmt)
mtx
- Matrix
object to show as a plain text.fmt
- Format string for matrix rows.public static void showAscii(Matrix mtx, IgniteLogger log, String fmt)
mtx
- Matrix
object to show as a plain text.log
- IgniteLogger
instance to output the logged matrix.fmt
- Format string for matrix rows.public static void showAscii(Vector vec)
vec
- Vector
object to show as a plain text.public static void saveAsCsv(Vector vec, String fmt, String filePath) throws IOException
vec
- Vector to save.fmt
- Format to use.filePath
- Path of the file to save to.IOException
public static void saveAsCsv(Matrix mtx, String fmt, String filePath) throws IOException
mtx
- Matrix to save.fmt
- Format to use.filePath
- Path of the file to save to.IOException
public static void showHtml(Matrix mtx) throws IOException
mtx
- Matrix to show.IOException
- Thrown in case of any errors.public static void showHtml(Matrix mtx, boolean useAsciiFallback) throws IOException
mtx
- Matrix to show.useAsciiFallback
- Use ascii fallback is desktop or browser is unavailable.IOException
- Thrown in case of any errors.public static void showHtml(Matrix mtx, Tracer.ColorMapper cm) throws IOException
mtx
- Matrix to show.cm
- Optional color mapper. If not provided - red-to-blue (R_B) mapper will be used.IOException
- Thrown in case of any errors.public static void showHtml(Matrix mtx, Tracer.ColorMapper cm, boolean useAsciiFallback) throws IOException
mtx
- Matrix to show.cm
- Optional color mapper. If not provided - red-to-blue (R_B) mapper will be used.useAsciiFallback
- Use ascii fallback is desktop or browser is unavailable.IOException
- Thrown in case of any errors.public static void showHtml(Vector vec) throws IOException
vec
- Vector to show.IOException
- Thrown in case of any errors.public static void showHtml(Vector vec, boolean useAsciiFallback) throws IOException
vec
- Vector to show.useAsciiFallback
- Use ascii fallback is desktop or browser is unavailable.IOException
- Thrown in case of any errors.public static void showRegressionDatasetInHtml(String name, DataStreamGenerator generator, int limit, int xIdx) throws IOException
name
- Name of dataset for showing.generator
- Datastream generator.limit
- Count of points that should be taken from dataset.xIdx
- Index of dimension for abscissa representation.IOException
- IOException.public static void showRegressionDatasetInHtml(DataStreamGenerator generator, int limit, int xIdx) throws IOException
generator
- Datastream generator.limit
- Count of points that should be taken from dataset.xIdx
- Index of dimension for abscissa representation.IOException
- IOException.public static void showClassificationDatasetHtml(DataStreamGenerator generator, int limit, int xIdx, int yIdx, boolean isLabeled) throws IOException
generator
- Datastream generator.limit
- Count of points that should be taken from dataset.xIdx
- Index of dimension for abscissa representation.yIdx
- Index of dimension for ordinate representation.isLabeled
- if isLabeled == true then colors will be used for separate different classes on plane.IOException
- IOException.public static void showClassificationDatasetHtml(String name, DataStreamGenerator generator, int limit, int xIdx, int yIdx, boolean isLabeled) throws IOException
name
- Name of dataset for showing.generator
- Datastream generator.limit
- Count of points that should be taken from dataset.xIdx
- Index of dimension for abscissa representation.yIdx
- Index of dimension for ordinate representation.isLabeled
- if isLabeled == true then colors will be used for separate different classes on plane.IOException
- IOException.public static void showHtml(Vector vec, Tracer.ColorMapper cm) throws IOException
vec
- Vector to show.cm
- Optional color mapper. If not provided - red-to-blue (R_B) mapper will be used.IOException
- Thrown in case of any errors.public static void showHtml(Vector vec, Tracer.ColorMapper cm, boolean useAsciiFallback) throws IOException
vec
- Vector to show.cm
- Optional color mapper. If not provided - red-to-blue (R_B) mapper will be used.useAsciiFallback
- Use ascii fallback is desktop or browser is unavailable.IOException
- Thrown in case of any errors.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024