robobub has joined #mlpack
Guest4 has joined #mlpack
Guest4 has quit [Quit: Client closed]
_slack_mlpack_10 has quit [Quit: You have been kicked for being idle]
ShivyaGarg[m] has quit [Quit: You have been kicked for being idle]
_slack_mlpack_10 has joined #mlpack
ZhiyangShen[m] has quit [Quit: You have been kicked for being idle]
<
akhunti1[m]>
Hi Team ,
<
akhunti1[m]>
from this line of code [ rf.Classify(arma::mat(res), testPredictions, probs)] , I want to convert probs to ndarry type
<
akhunti1[m]>
* of code \[ rf.Classify(arma::mat(res),, * testPredictions, probs)\] ,, * convert probs type to ndarry
<
akhunti1[m]>
could you pls help me on that.
<
zoq[m]>
Is this using the python API?
<
akhunti1[m]>
no , using c++
<
zoq[m]>
and what is ndarry?
<
akhunti1[m]>
n-dimensional array
<
zoq[m]>
so, arma::vec ?
<
zoq[m]>
Because you could just use arma::vec v = vectorise(probs);.
<
zoq[m]>
To get your n-dimensional array / vector.
<
zoq[m]>
or `stdvec z = arma::conv_to<stdvec>::from(probs); ` where `stdvec` is `typedef std::vector<double> stdvec;`.
<
zoq[m]>
because std::vector is also an n-dimensional array
<
akhunti1[m]>
Thanks zoq
M1900at12358Lu[m has joined #mlpack