How to use R gbm with distribution = “adaboost”?

Documentation states that R gbm with distribution = "adaboost" can be used for 0-1 classification problem. Consider the following code fragment:

gbm_algorithm <- gbm(y ~ ., data = train_dataset, distribution = "adaboost", n.trees = 5000)
gbm_predicted <- predict(gbm_algorithm, test_dataset, n.trees = 5000)


It can be found in the documentation that predict.gbm

Returns a vector of predictions. By default the predictions are on the scale of f(x).

However the particular scale is not clear for the case of distribution = "adaboost".

Could anyone help with the interpretation of predict.gbm return values and provide an idea of conversion to the 0-1 output?

-
This question appears to be only about how to interpret R output, & not about the related statistical issues (although that doesn't make it a bad Q). As such it is better asked, & probably answered, on Stack Overflow, rather than here. Please don't cross-post (SE strongly discourages this), if you want your Q migrated faster, please flag it for moderator attention. –  gung Sep 18 '12 at 15:57
@gung seems like a legitimate statistical question to me. The GBM package supplies the Deviance used for adaboost but it is not clear to me either what f(x) is and how to back transform to a probability scale (perhaps one has to use Platt scaling). cran.r-project.org/web/packages/gbm/vignettes/gbm.pdf –  B_Miner Sep 18 '12 at 16:26
gbm_predicted<-plogis(gbm_predicted)