Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rのブースティングアルゴリズム(gbm関数)でスプライン変換(bs関数)を使用しようとしています。ただし、次のコードを記述すると、エラーがスローされます。
gbm(as.integer(cancel) ~ bs(log_tenure), data = train, distribution = "bernoulli")
data.matrix(x) のエラー: 置換するアイテムの数が置換長の倍数ではありません
Rのgbm関数でスプライン変換を使用する方法はありますか?