Skip to content

Commit

Permalink
Yet more playing with the test driver
Browse files Browse the repository at this point in the history
  • Loading branch information
batterseapower committed Sep 7, 2008
1 parent b50897b commit 5323a94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Algorithms/MachineLearning/Tests/Driver.hs
Expand Up @@ -43,8 +43,9 @@ main = do
gen <- newStdGen gen <- newStdGen
let --used_data = sinDataSet let --used_data = sinDataSet
used_data = sampleDataSet gen 10 sinDataSet used_data = sampleDataSet gen 10 sinDataSet
--(model, variance_model) = regressBayesianLinearModel 1 (1 / 0.09) basisFunctions used_data --model = regressLinearModel basisFunctions used_data
(model, variance_model, gamma) = regressEMBayesianLinearModel 1 (1 / 0.09) basisFunctions used_data (model, variance_model) = regressBayesianLinearModel 1 (1 / 0.09) basisFunctions used_data
--(model, variance_model, gamma) = regressEMBayesianLinearModel 1 (1 / 0.09) basisFunctions used_data


-- Show some model statistics -- Show some model statistics
evaluate model used_data evaluate model used_data
Expand All @@ -53,4 +54,4 @@ main = do
--putStrLn $ "Gamma = " ++ show gamma --putStrLn $ "Gamma = " ++ show gamma


-- Show some graphical information about the model -- Show some graphical information about the model
plot [dataSetToSampleList used_data, sampleFunction $ predict model, sampleFunction $ (sqrt . predict variance_model)] plot [dataSetToSampleList used_data, sampleFunction $ predict model, sampleFunction $ (sqrt . predict variance_model)

0 comments on commit 5323a94

Please sign in to comment.