I’m using SQL Server Analysis Studio 2008 to query a Naive Bayes classification model. I’m using PredictHistogram so it returns a nice table of support, probabilities, etc., however I want the returned data to be sorted by AdjustedProbability and not any other the other columns.
Does anyone know syntactically how to adjust my query below? I’ve tried several things but it’s not happy in SQL Server Management Studio. Thanks,
mj
select predicthistogram([bayes].[code]) from [bayes]
natural prediction join
(select
(select 'michael' as [name]) as [name_table]
) as t
I figured it out.
TopCount is necessary to sort everything coming back from a predicthistogram call.