mirror of
https://github.com/Relintai/pmlpp.git
synced 2025-01-02 16:29:35 +01:00
Fixed warnings in MLPPCLogLogReg.
This commit is contained in:
parent
3036db18fb
commit
c37237aef8
@ -145,7 +145,9 @@ void MLPPCLogLogReg::MBGD(real_t learning_rate, int max_epoch, int mini_batch_si
|
|||||||
|
|
||||||
// Creating the mini-batches
|
// Creating the mini-batches
|
||||||
int n_mini_batch = n / mini_batch_size;
|
int n_mini_batch = n / mini_batch_size;
|
||||||
auto [inputMiniBatches, outputMiniBatches] = MLPPUtilities::createMiniBatches(inputSet, outputSet, n_mini_batch);
|
auto batches = MLPPUtilities::createMiniBatches(inputSet, outputSet, n_mini_batch);
|
||||||
|
auto inputMiniBatches = std::get<0>(batches);
|
||||||
|
auto outputMiniBatches = std::get<1>(batches);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
for (int i = 0; i < n_mini_batch; i++) {
|
for (int i = 0; i < n_mini_batch; i++) {
|
||||||
@ -180,7 +182,7 @@ void MLPPCLogLogReg::MBGD(real_t learning_rate, int max_epoch, int mini_batch_si
|
|||||||
}
|
}
|
||||||
|
|
||||||
real_t MLPPCLogLogReg::score() {
|
real_t MLPPCLogLogReg::score() {
|
||||||
MLPPUtilities util;
|
MLPPUtilities util;
|
||||||
return util.performance(y_hat, outputSet);
|
return util.performance(y_hat, outputSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,7 +216,6 @@ real_t MLPPCLogLogReg::propagate(std::vector<real_t> x) {
|
|||||||
|
|
||||||
// cloglog ( wTx + b )
|
// cloglog ( wTx + b )
|
||||||
void MLPPCLogLogReg::forwardPass() {
|
void MLPPCLogLogReg::forwardPass() {
|
||||||
MLPPLinAlg alg;
|
|
||||||
MLPPActivation avn;
|
MLPPActivation avn;
|
||||||
|
|
||||||
z = propagate(inputSet);
|
z = propagate(inputSet);
|
||||||
|
Loading…
Reference in New Issue
Block a user