OmniSciDB
a5dc49c757
|
#include <DdlCommandExecutor.h>
Public Member Functions | |
ShowModelFeatureDetailsCommand (const DdlCommandData &ddl_data, std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr) | |
ExecutionResult | execute (bool read_only_mode) override |
Public Member Functions inherited from DdlCommand | |
DdlCommand (const DdlCommandData &ddl_data, std::shared_ptr< Catalog_Namespace::SessionInfo const > session_ptr) | |
Private Member Functions | |
std::vector< TargetMetaInfo > | prepareLabelInfos () const |
std::pair< std::vector< double > , std::vector< std::vector < double > > > | extractExtraMetadata (std::shared_ptr< AbstractMLModel > model, std::vector< TargetMetaInfo > &label_infos) const |
std::vector < RelLogicalValues::RowValues > | prepareLogicalValues (const MLModelMetadata &model_metadata, const std::vector< std::vector< std::string >> &cat_sub_features, std::vector< double > &extra_metadata, const std::vector< std::vector< double >> &eigenvectors, const std::vector< int64_t > &inverse_permutations) const |
Additional Inherited Members | |
Protected Attributes inherited from DdlCommand | |
const DdlCommandData & | ddl_data_ |
std::shared_ptr < Catalog_Namespace::SessionInfo const > | session_ptr_ |
Definition at line 295 of file DdlCommandExecutor.h.
ShowModelFeatureDetailsCommand::ShowModelFeatureDetailsCommand | ( | const DdlCommandData & | ddl_data, |
std::shared_ptr< Catalog_Namespace::SessionInfo const > | session_ptr | ||
) |
Definition at line 2197 of file DdlCommandExecutor.cpp.
References g_enable_ml_functions, and g_restrict_ml_model_metadata_to_superusers.
|
overridevirtual |
Executes the DDL command corresponding to provided JSON payload.
_return | result of DDL command execution (if applicable) |
Implements DdlCommand.
Definition at line 2347 of file DdlCommandExecutor.cpp.
References CHECK, ResultSetLogicalValuesBuilder::create(), DdlCommand::ddl_data_, extractExtraMetadata(), anonymous_namespace{DdlCommandExecutor.cpp}::extractPayload(), g_ml_models, legacylockmgr::getExecuteReadLock(), MLModelMap::getModel(), prepareLabelInfos(), and prepareLogicalValues().
Referenced by heavydb.cursor.Cursor::executemany().
|
private |
Definition at line 2227 of file DdlCommandExecutor.cpp.
References CHECK_EQ, LinearRegressionModel::getCoefs(), PcaModel::getEigenvalues(), kDOUBLE, kTEXT, LINEAR_REG, PCA, and RANDOM_FOREST_REG.
Referenced by execute().
|
private |
Definition at line 2217 of file DdlCommandExecutor.cpp.
References kBIGINT, and kTEXT.
Referenced by execute().
|
private |
Definition at line 2270 of file DdlCommandExecutor.cpp.
References anonymous_namespace{DdlCommandExecutor.cpp}::genLiteralBigInt(), anonymous_namespace{DdlCommandExecutor.cpp}::genLiteralDouble(), genLiteralStr(), MLModelMetadata::getFeatures(), MLModelMetadata::getModelType(), and LINEAR_REG.
Referenced by execute().