7.00.02 - SQL-MapReduce Call - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
SELECT * FROM HMMDecoder (
  ON pi_loan AS "InitStateProb" PARTITION BY model_id
  ON A_loan AS "TransProb" PARTITION BY model_id
  ON B_loan AS "EmissionProb" PARTITION BY model_id
  ON test_loan_prediction AS "observation" PARTITION BY model_id
    ORDER BY model_id, seq_id, seq_vertex_id ASC
  InitStateModelColumn ('model_id')
  InitStateColumn ('state')
  InitStateProbColumn ('probability')
  TransAttributeColumn ('model_id')
  TransFromStateColumn ('from_state')
  TransToStateColumn ('to_state')
  TransProbColumn ('probability')
  EmitModelColumn ('model_id')
  EmitStateColumn ('state')
  EmitObsColumn ('observed')
  EmitProbColumn ('probability')
  ModelColumn ('model_id')
  SeqColumn ('seq_id')
  ObsColumn ('observed_id ')
  Accumulate ('seq_vertex_id ')
) ORDER BY 1, 2, 5;