我正在通过以下教程学习bootstrap。我试图从
中了解有关d <- data.frame(y = rnorm(50))
d$x1 <- rnorm(50, d$y)
d$x2 <- rnorm(50, d$y)
train_control <- caret::trainControl(method = "cv",
number = 4,
search = "random",
savePredictions = "final")
m <- caret::train(x = d[, -1],
y = d$y,
method = "ranger",
trControl = train_control,
tuneLength = 3)
#> Loading required package: lattice
#> Loading required package: ggplot2
m
#> Random Forest
#>
#> 50 samples
#> 2 predictor
#>
#> No pre-processing
#> Resampling: Cross-Validated (4 fold)
#> Summary of sample sizes: 38, 36, 38, 38
#> Resampling results across tuning parameters:
#>
#> min.node.size mtry splitrule RMSE Rsquared MAE
#> 1 2 maxstat 0.5981673 0.6724245 0.4993722
#> 3 1 extratrees 0.5861116 0.7010012 0.4938035
#> 4 2 maxstat 0.6017491 0.6661093 0.4999057
#>
#> RMSE was used to select the optimal model using the smallest value.
#> The final values used for the model were mtry = 1, splitrule =
#> extratrees and min.node.size = 3.
MLmetrics::RMSE(m$pred$pred, m$pred$obs)
#> [1] 0.609202
MLmetrics::R2_Score(m$pred$pred, m$pred$obs)
#> [1] 0.642394
的更多信息
.img-responsive
。
但我在bootstrap doc上找不到<img class="img-responsive" src="...some link...">
。这与我在bootstrap上找到的内容非常接近:https://getbootstrap.com/docs/4.1/content/images/.但是,我能够在w3schools找到它。是因为bootstrap 4.1没有.img-responsive
还是我错过了什么?谢谢您的帮助。
答案 0 :(得分:0)
.img-responsive
已重命名为.img-fluid
在Bootstrap 4.0的文档中,您可以在此处找到它:https://getbootstrap.com/docs/4.0/content/images/#responsive-images
答案 1 :(得分:0)
在bootstrap v4.0(或更高版本)中,图像响应.img-fluid
类。