当前位置: 首页 > news >正文

网站建设 网站制作表白网站建设

网站建设 网站制作,表白网站建设,零售网站制作,建立网站的第一步是建立什么API的的调用目前来说不限制地区#xff0c;但是OpenAI的API的申请限制了地区。运行的时候#xff0c;如果出现了429#xff0c;意味着你被限流了#xff0c;需要等一会才行。 前提是#xff0c;你需要注册一个OpenAI的账户#xff0c;然后在https://openai.com/api/ 里申… API的的调用目前来说不限制地区但是OpenAI的API的申请限制了地区。运行的时候如果出现了429意味着你被限流了需要等一会才行。 前提是你需要注册一个OpenAI的账户然后在https://openai.com/api/ 里申请OpenAI的密钥。 在页面左上角点击头像选择View API Keys 然后新建一个密钥并复制。 接着我们需要在R语言中设置一个环境变量OPENAI_API_KEY。 这有两种方式一种是每次启动RStudio后手动运行如下代码 Sys.setenv(OPENAI_API_KEY 你复制的密钥) 另一种是利用usethis包通过如下代码在项目目录下创建一个.Renviron文件 library(usethis) usethis::edit_r_environ(scope project) 在该文件中设置OPENAI_API_KEY并保存该文件。 之后从github上安装gptstudio #install.packages(devtools) devtools::install_github(MichelNivard/gptstudio)安装完毕后你的RStudio中的Addins就会出现GPTSTUDIO工具栏 如我们所见它的功能主要有7项。 我们可以让它帮我们写代码例如你写了一段注释 # write a R code for volcano plot with result from # DESeq2然后选择插件的Write/Code from prompt过了一会就能生成如下的代码 # install and load the DESeq2 package install.packages(DESeq2) library(DESeq2)# read the data data - read.csv(data.csv)# create a DESeqDataSet dds - DESeqDataSetFromMatrix(countData data,colData data$condition,design ~ condition)# run the DESeq2 dds - DESeq(dds)# extract the results res - results(dds)# create the volcano plot plot(res$log2FoldChange, -log10(res$padj),xlab log2 Fold Change,ylab -log10 Adjusted p-value,main Volcano Plot)# add points points(res$log2FoldChange, -log10(res$padj),pch 20,col ifelse(res$padj 0.05, red, black))# add lines abline(h -log10(0.05), lty 2, col blue) abline(v 0, lty 2, col blue)此外可以让它帮我们给代码写注释比如说你在Rstudio中输入如下内容 set.seed(1) mtcars2 - transform(mtcars, mpg ifelse(runif(32) 0.2, NA, mpg)) ggplot(mtcars2, aes(wt, mpg)) geom_point()选择代码后在Addins中选择了 Comment your code我们就会得到如下的内容。 # load the ggplot2 package library(ggplot2) # set the seed for the random number generator set.seed(1) # create a new variable called mtcars2, which is a copy of the mtcars dataset # with 20% of the mpg values replaced with NA mtcars2 - transform(mtcars, mpg ifelse(runif(32) 0.2, NA, mpg)) # create a scatterplot of mpg vs wt, with mpg on the y-axis and wt on the x-axis ggplot(mtcars2, aes(wt, mpg)) geom_point()其他功能可以通过官方文档进行了解哦https://github.com/MichelNivard/gptstudio
http://www.sczhlp.com/news/184087/

相关文章:

  • 深圳专业做网站网站建设指引
  • 深圳燃气小程序西安百度首页优化
  • 企业网站建设及前期准备网站分布
  • 网站建设摊销面包店网站建设规划书
  • 程序员做网站域名和网站建设费如何入帐
  • 单页网站内链接网站域名使用
  • 横岗做网站公司wordpress首页模板制作
  • 站群网站建设wordpress phonegap
  • 怎样自创广告网站为什么电子网站开发
  • 网站的常用建设技术有哪些建设银行信用卡网站是多少
  • 北海公司做网站天河网站建设哪个好
  • 外贸网站收到询盘在北京注册公司流程及费用
  • 国税网站建设现状图片素材网站哪个最多
  • 恩施哪里有做网站的专业网站建设集团
  • 政务内网网站群建设方案数据线 东莞网站建设
  • 复旦大学精品课程网站京东当前网站做的营销活动
  • 做网站要知道哪些代码便宜域名
  • 网站运营seo实训总结网站维护 年费
  • c 网站开发入门视频怎么免费建商城网站吗
  • 如何查询网站所有人网站后台密码忘记了怎么办
  • 做淘客网站要备案公司产品怎样网上推广
  • 网站前台模板怎么替换江门网站排名优化
  • 福州建网站的公司漂亮的数据型网站
  • 花体字转换器宁波免费seo排名优化
  • 华东建设安装有限公司网站佛山网站制作网页制作
  • 网站运营策划ppt视频网站怎么做统计表
  • 高增长行业碳减排技术路径解析
  • 计算机网络技术全面解析:从基础架构到未来趋势
  • 网站建设计划免费看电视剧的网站在线观看
  • 长沙精品网站制作动态域名做网站