package
0.0.0-20211212194252-0d40728414ff
Repository: https://github.com/uncharted-distil/distil.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CreateFilteredData creates a filtered data structure from raw string data.
DataModeFromString creates a DataMode from the supplied string.
EmptyFilterData returns an empty FilteredData object.
ExpandFilterParams examines filter parameters for grouped variables, and replaces them with their constituent components as necessary.
FetchDatasetVariables fetches the variable list for a dataset, and removes any variables that don't have corresponding dataset values (grouped variables).
FetchSummaryVariables fetches the variable list from the data store and filters/expands it to contain only those variables that should be displayed to a client.
GetBaselineFilter returns a filter params that only has the baseline filters.
GetClusterColFromGrouping return the cluster column if it exists in the group.
GetConfidenceKey returns a solutions error col key.
GetErrorKey returns a solutions error col key.
GetFilterVariables builds the filtered list of fields based on the filtering parameters.
GetPredictedKey returns a solutions predicted col key.
GetRankKey returns a solutions rank col key.
HasClusterData checks to see if a grouped variable has associated cluster data available.
IsConfidenceKey returns true if the key matches a confidence key.
IsErrorKey returns true if the key matches an error key.
IsPredictedKey returns true if the key matches a predicted key.
IsRankKey returns true if the key matches a rank key.
IsResultKey returns true if the key matches an predicted or error key.
LoadDiskDataset loads a dataset from disk.
LoadDiskDatasetFromFolder loads a dataset from disk at the specified location.
MapVariables creates a variable map using the mapper function to create the key.
NewExtrema instantiates a new extrema struct.
NewFilterParamsFromFilters creates a wrapping container for all filters.
ParseDatasetOriginsFromJSON parses dataset origins from string maps.
ParseFilterParamsFromJSON parses filter parameters out of a map[string]interface{}.
ParseFilterParamsFromJSONRaw parses filter parameters out of a json.RawMessage.
ParseVariableUpdateList returns a list of parsed variable updates.
ReplaceNaNs replaces NaN values found in numerical columns with empty values.
SolutionVariableFromModelVariable creates a solution variable from a model variable.
StripKeySuffix removes any result key suffix.
SummaryModeFromString creates a SummaryMode from the supplied string.
UpdateDiskDataset updates a disk dataset to have the new and updated data.
UpdateExtremas updates the variable extremas based on the data stored.
UpdateFilterKey updates the supplied filter key to point to a group-specific column, rather than relying on the group variable name.
# Constants
ClusterDataMode use computed cluster information for filtering if availble, ex.
ClusterMode use computed cluster information for a variable summary if availble, ex.
DatasetTypeInference is a dataset consumed by a model to infer predictions.
DatasetTypeModelling is a dataset used to build models.
DayInterval represents an day time bucketing interval.
DefaultDataMode use the id field for filtering, ex.
DefaultMode use the default facet for a variable summary given its type, ex.
EmptyString replaces NaN values with an empty string, which will result in "" being encoded into the JSON structure.
HistogramAggPrefix is the prefix used for histogram aggregations.
HourInterval represents an hour time bucketing interval.
MaxAggPrefix is the prefix used for max aggregations.
MaxNumBuckets is the maximum number of buckets to use for histograms.
MinAggPrefix is the prefix used for min aggregations.
MonthInterval represents a month time bucketing interval.
MultiBandImageMode use the multi-band image grouping to return tile counts rather than image counts.
Null replaces NaN values with Nil, which will result in 'null' being encoded into the JSON structure.
SolutionResultTypeInference is the solution result type for inferences.
SolutionResultTypeTest is the solution result type for tests.
TermsAggPrefix is the prefix used for terms aggregations.
TimeseriesAddOp indicates that bucket values should be added.
TimeseriesDefaultOp is the operation to use when none is specified.
TimeseriesMaxOp indicates that the max of bucket values should be taken.
TimeseriesMeanOp indicates that the mean of bucket values should be taken.
TimeseriesMinOp indicates that the min of bucket values should be taken.
TimeseriesMode use the timeseries grouping to return timeseries counts rather than observation counts.
VariableTypeField is the field which stores the variable's schema type value.
VariableValueField is the field which stores the variable value.
WeekInterval represents a week time bucketing interval.
# Variables
FilterModeInverse provides a quick way to inverse filter modes.
# Structs
BinningArgs represent timeseries binning args.
Bucket represents a single histogram bucket.
Column represents a column for filtered data.
Dataset represents a decsription of a dataset.
DiskDataset represents a dataset stored on disk.
ExportedModel represents a description of an exported model.
Extrema represents the extrema for a single variable.
Feature represents a request feature metadata.
FilteredData provides the metadata and raw data values that match a supplied input filter.
FilteredDataValue represents a data value combined with an optional weight.
FilterParams defines the set of filters to use.
Histogram represents a single variable histogram.
JoinSuggestion specifies potential joins between datasets.
Prediction represents the prediction metadata.
Request represents the request metadata.
Solution is a container for a TA2 solution.
SolutionExplainResult captures the explainable output by row.
SolutionExplainValues represent use case specific explain output by row.
SolutionFeatureWeight captures the weights for a given d3m index and result.
SolutionResult represents the solution result metadata.
SolutionResultExplainOutput captures the explainable output from a produce call.
SolutionScore represents the result score data.
SolutionState represents the state updates for a solution.
SolutionVariable represents the basic variable data for a solution.
SolutionWeight captures the weights for a given d3m index and result.
TimeseriesData represents the result of a timeseries request.
TimeseriesObservation represents a timeseries value along with confidences.
VariableSummary represents a summary of the variable values.
VariableUpdate captures the information to update the dataset data.
# Interfaces
DataStorage defines the functions available to query the underlying data storage.
ExportedModelStorage defines the functions available to query the underlying model storage.
MetadataStorage defines the functions available to query the underlying metadata storage.
SolutionStorage defines the functions available to query the underlying solution storage.
# Type aliases
DataMode defines the data filter modes.
DatasetType is used to identify the type of dataset ingested.
DataStorageCtor represents a client constructor to instantiate a data storage client.
ExportedModelStorageCtor represents a client constructor to instantiate a model storage client.
MetadataStorageCtor represents a client constructor to instantiate a metadata storage client.
NaNReplacement defines the type of replacement value to use for NaNs.
NullableFloat64 is float64 with custom JSON marshalling to allow for NaN values to be handled gracefully.
SolutionStorageCtor represents a client constructor to instantiate a solution storage client.
SummaryMode defines the summary display modes.
TimeseriesOp defines the operation to aggregate timeseries values that fall into the same bucket.