问题描述
我正在阅读文档“”https://docs.microsoft.com/en-us/azure/devops/pipelines/integrations/microsoft-teams?view=azure-devops"",其中说只有当您的项目托管在 Azure Devops 服务上时,才能将 Azure Pipelines 与 Microsoft Teams 集成
所以现在我的项目托管在 Azure Devops Server(TFS) 上,我可以使用“Azure Pipelines with Microsoft Teams”吗
解决方法
k <- 13
## Create a spline basis and penalty
## Make sure there is a knot at the constraint point (here: -1)
knots <- data.frame(x = seq(-1,3,length=k))
# explicit construction of a smooth term in a GAM
sm <- smoothCon(s(x,k=k,bs="cr"),dat,knots=knots)[[1]]
## 1st parameter is value of spline at knot location -1,set it to 0 by dropping
knot_which <- which(knots$x == -1)
X <- sm$X[,-knot_which] ## spline basis
S <- sm$S[[1]][-knot_which,-knot_which] ## spline penalty
off <- dat$y * 0 + (-0.1) ## offset term to force curve through (x0,y0)
## fit spline constrained through (x0,y0)
gam_1 <- gam(y ~ X - 1 + offset(off),paraPen = list(X = list(S)))
# predict (add offset of -0.1)
newdata_tmp <- Predict.matrix(sm,data.frame(x = newdata$x))
newdata_tmp <- newdata_tmp[,-knot_which]
newdata$y_pred_fit1 <- (newdata_tmp %*% coef(gam_1))[,1] + (-0.1)
# plot
plot(y ~ x,data = dat)
lines(y_pred_fit0 ~ x,data = newdata,col = 2,lwd = 2)
lines(y_pred_fit1 ~ x,col = 3,lwd = 2)
# lines at cross of which the plot should go throught
abline(v=-1,col = 3); abline(h=-0.1,col = 3)
目前仅在 Azure DevOps Services 上可用。你可以在下面的网站上为 Azure DevOps Server 提交用户意见:
https://developercommunity.visualstudio.com/report?space=22&entry=suggestion
,Azure Pipelines with Microsoft Teams for Azure devops Server 是一项正在开发的功能。目前不可能。