shutdown_serverservererror

servererror  时间:2021-04-12  阅读:()
Package'gym'October25,2016Version0.
1.
0TitleProvidesAccesstotheOpenAIGymAPIDescriptionOpenAIGymisaopen-sourcePythontoolkitfordevelopingandcomparingreinforcementlearningalgorithms.
ThisisawrapperfortheOpenAIGymAPI,andenablesaccesstoanever-growingvarietyofenvironments.
FormoredetailsonOpenAIGym,pleaseseehere:.
FormoredetailsontheOpenAIGymAPIspecication,pleaseseehere:.
LicenseMIT+leLICENSELazyDatatrueDependsR(>=3.
3.
1)Importshttr,jsonliteURLhttps://github.
com/paulhendricks/gym-RBugReportshttps://github.
com/paulhendricks/gym-R/issuesRoxygenNote5.
0.
1SuggeststestthatNeedsCompilationnoAuthorPaulHendricks[aut,cre]MaintainerPaulHendricksRepositoryCRANDate/Publication2016-10-2500:57:54Rtopicsdocumented:create_GymClient2env_action_space_contains3env_action_space_info3env_action_space_sample4env_close5env_create612create_GymClientenv_list_all6env_monitor_close7env_monitor_start8env_observation_space_info9env_reset9env_step10get_request11gym11parse_server_error_or_raise_for_status12post_request12print.
GymClient13random_discrete_agent14shutdown_server14upload15Index16create_GymClientCreateaGymClientinstance.
DescriptionThisfunctioninstantiatesaGymClientinstancetointegratewithanOpenAIGymserver.
Usagecreate_GymClient(remote_base)Argumentsremote_baseTheURLoftheOpenAIgymserver.
Thisvalueisusually"http://127.
0.
0.
1:5000".
ValueAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)##End(Notrun)env_action_space_contains3env_action_space_containsEvaluatewhetheranactionisamemberofanenvironments'sactionspace.
DescriptionEvaluatewhetheranactionisamemberofanenvironments'sactionspace.
Usageenv_action_space_contains(x,instance_id,action)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
instance_idAshortidentier(suchas"3c657dbc")fortheenvironmentinstance.
actionAnactiontotakeintheenvironment.
ValueAbooleanatomicvectoroflengthoneindicatingiftheactionisamemberofanenvironments'sactionspace.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"instance_id<-env_create(client,env_id)action<-env_action_space_sample(client,instance_id)env_action_space_contains(client,instance_id,action)##End(Notrun)env_action_space_infoGetinformation(nameanddimensions/bounds)oftheenvironments'sactionspace.
DescriptionGetinformation(nameanddimensions/bounds)oftheenvironments'sactionspace.
4env_action_space_sampleUsageenv_action_space_info(x,instance_id)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
instance_idAshortidentier(suchas"3c657dbc")fortheenvironmentinstance.
ValueAlistcontaining"name"(suchas"Discrete"),andadditionaldimensionalinfo(suchas"n")whichvariesfromspacetospace.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"instance_id<-env_create(client,env_id)env_action_space_info(client,instance_id)##End(Notrun)env_action_space_sampleSampleanactionfromtheenvironments'sactionspace.
DescriptionSampleanactionfromtheenvironments'sactionspace.
Usageenv_action_space_sample(x,instance_id)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
instance_idAshortidentier(suchas"3c657dbc")fortheenvironmentinstance.
ValueAnactionsampledfromaspace(suchas"Discrete"),whichvariesfromspacetospace.
env_close5Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"instance_id<-env_create(client,env_id)env_action_space_sample(client,instance_id)##End(Notrun)env_closeFlushallmonitordatatodisk.
DescriptionFlushallmonitordatatodisk.
Usageenv_close(x,instance_id)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
instance_idAshortidentier(suchas"3c657dbc")fortheenvironmentinstance.
ValueNULL.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"instance_id<-env_create(client,env_id)env_close(client,instance_id)##End(Notrun)6env_list_allenv_createCreateaninstanceofthespeciedenvironment.
DescriptionCreateaninstanceofthespeciedenvironment.
Usageenv_create(x,env_id)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
env_idAshortidentier(suchas"3c657dbc")forthecreatedenvironmentinstance.
Theinstance_idisusedinfutureAPIcallstoidentifytheenvironmenttobemanipulated.
ValueAshortidentier(suchas"3c657dbc")forthecreatedenvironmentinstance.
Theinstance_idisusedinfutureAPIcallstoidentifytheenvironmenttobemanipulated.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"env_create(client,env_id)##End(Notrun)env_list_allListallenvironmentsrunningontheserver.
DescriptionListallenvironmentsrunningontheserver.
Usageenv_list_all(x)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
env_monitor_close7ValueAlistmappinginstance_idtoenv_ide.
g.
list("3c657dbc"="CartPole-v0")foreveryenvontheserver.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_list_all(client)##End(Notrun)env_monitor_closeFlushallmonitordatatodisk.
DescriptionFlushallmonitordatatodisk.
Usageenv_monitor_close(x,instance_id)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
instance_idAshortidentier(suchas"3c657dbc")fortheenvironmentinstance.
ValueNULL.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"instance_id<-env_create(client,env_id)env_monitor_close(client,instance_id)##End(Notrun)8env_monitor_startenv_monitor_startStartmonitoring.
DescriptionStartmonitoring.
Usageenv_monitor_start(x,instance_id,directory,force=FALSE,resume=FALSE)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
instance_idAshortidentier(suchas"3c657dbc")fortheenvironmentinstance.
directoryThedirectorytowritethetrainingdatato.
DefaultstoFALSE.
forceClearoutexistingtrainingdatafromthisdirectory(bydeletingeverylepre-xedwith"openaigym").
DefaultstoNULL.
resumeRetainthetrainingdataalreadyinthisdirectory,whichwillbemergedwithournewdata.
DefaultstoFALSE.
ValueNULL.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"instance_id<-env_create(client,env_id)outdir<-"/tmp/random-agent-results"env_monitor_start(client,instance_id,outdir,force=TRUE,resume=FALSE)##End(Notrun)env_observation_space_info9env_observation_space_infoGetinformation(nameanddimensions/bounds)oftheenvironment'sobservationspace.
DescriptionGetinformation(nameanddimensions/bounds)oftheenvironment'sobservationspace.
Usageenv_observation_space_info(x,instance_id)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
instance_idAshortidentier(suchas"3c657dbc")fortheenvironmentinstance.
ValueAlistcontaining"name"(suchas"Discrete"),andadditionaldimensionalinfo(suchas"n")whichvariesfromspacetospace.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"instance_id<-env_create(client,env_id)env_observation_space_info(client,instance_id)##End(Notrun)env_resetResetthestateoftheenvironmentandreturnaninitialobservation.
DescriptionResetthestateoftheenvironmentandreturnaninitialobservation.
Usageenv_reset(x,instance_id)10env_stepArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
instance_idAshortidentier(suchas"3c657dbc")fortheenvironmentinstance.
ValueTheinitialobservationofthespace.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"instance_id<-env_create(client,env_id)env_reset(client,instance_id)##End(Notrun)env_stepStepthoughanenvironmentusinganaction.
DescriptionStepthoughanenvironmentusinganaction.
Usageenv_step(x,instance_id,action,render=FALSE)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
instance_idAshortidentier(suchas"3c657dbc")fortheenvironmentinstance.
actionAnactiontotakeintheenvironment.
renderWhethertorendertheenvironment.
DefaultstoFALSE.
ValueAlistconsistingofthefollowing:action;anactiontotakeintheenvironment,observation;anagent'sobservationofthecurrentenvironment,reward;theamountofrewardreturnedafterpre-viousaction,done;whethertheepisodehasended,andinfo;alistcontainingauxiliarydiagnosticinformation.
get_request11Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)env_id<-"CartPole-v0"instance_id<-env_create(client,env_id)action<-env_action_space_sample(client,instance_id)env_step(client,instance_id,action)##End(Notrun)get_requestSubmitaGETrequesttoanOpenAIGymserver.
DescriptionSubmitaGETrequesttoanOpenAIGymserver.
Usageget_request(x,route,data=NULL)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
routeTheURLpathorendpoint.
dataURLqueryarguments.
DefaultvalueisNULL.
ValueIftheresponsecodeis200or204,aparsedresponse.
Else,aservererrororraisedexception.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)route<-"/v1/envs/"get_request(client,route)##End(Notrun)gymgym:ProvidesAccesstotheOpenAIGymAPIDescriptiongym:ProvidesAccesstotheOpenAIGymAPI12post_requestparse_server_error_or_raise_for_statusParsetheservererrororraiseforstatus.
DescriptionParsetheservererrororraiseforstatus.
Usageparse_server_error_or_raise_for_status(response)ArgumentsresponseAresponseobjectfromhttr::POSTorhttr::GET.
ValueIftheresponsecodeis200or204,aparsedresponse.
Else,aservererrororraisedexception.
Examples##Notrun:b2<-"http://httpbin.
org/post"response<-httr::POST(b2,body="Asimpletextstring")parse_server_error_or_raise_for_status(response)##End(Notrun)post_requestSubmitaPOSTrequesttoanOpenAIGymserver.
DescriptionSubmitaPOSTrequesttoanOpenAIGymserver.
Usagepost_request(x,route,data=NULL)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
routeTheURLpathorendpoint.
dataURLqueryarguments.
DefaultvalueisNULL.
print.
GymClient13ValueIftheresponsecodeis200or204,aparsedresponse.
Else,aservererrororraisedexception.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)route<-"/v1/envs/"env_id<-"CartPole-v0"data<-list(env_id=env_id)post_request(client,route,data)##End(Notrun)print.
GymClientRepresentaGymClientinstanceonthecommandline.
DescriptionRepresentaGymClientinstanceonthecommandline.
Usage##S3methodforclassGymClientprint(x,.
.
.
)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
.
.
.
Furtherargumentspassedtoorfromothermethods.
ValuexAGymClientinstance.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)print(client)##End(Notrun)14shutdown_serverrandom_discrete_agentAsamplerandomdiscreteagent.
DescriptionAsamplerandomdiscreteagent.
Usagerandom_discrete_agent(n)ArgumentsnThenumberofdiscreteactionspacesavailable.
ValueNULL.
Examplesagent<-random_discrete_agent(10)shutdown_serverRequestaservershutdown.
DescriptionRequestaservershutdown.
Usageshutdown_server(x)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
ValueNULLCurrentlyusedbytheintegrationteststorepeatedlycreateanddestroyfreshcopiesoftheserverrunninginaseparatethread.
upload15Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)shutdown_server(client)##End(Notrun)uploadFlushallmonitordatatodisk.
DescriptionFlushallmonitordatatodisk.
Usageupload(x,training_dir,api_key=NULL,algorithm_id=NULL)ArgumentsxAninstanceofclass"GymClient";thisobjecthas"remote_base"asanattribute.
training_dirAdirectorycontainingtheresultsofatrainingrun.
api_keyYourOpenAIAPIkey.
algorithm_idAnarbitrarystringindicatingtheparicularversionofthealgorithm(includingchoicesofparameters)youarerunning.
ValueNULL.
Examples##Notrun:remote_base<-"http://127.
0.
0.
1:5000"client<-create_GymClient(remote_base)outdir<-"/tmp/random-agent-results"upload(client,outdir)##End(Notrun)Indexcreate_GymClient,2env_action_space_contains,3env_action_space_info,3env_action_space_sample,4env_close,5env_create,6env_list_all,6env_monitor_close,7env_monitor_start,8env_observation_space_info,9env_reset,9env_step,10get_request,11gym,11gym-package(gym),11parse_server_error_or_raise_for_status,12post_request,12print.
GymClient,13random_discrete_agent,14shutdown_server,14upload,1516

特网云,美国独立物理服务器 Atom d525 4G 100M 40G防御 280元/月 香港站群 E3-1200V2 8G 10M 1500元/月

特网云为您提供高速、稳定、安全、弹性的云计算服务计算、存储、监控、安全,完善的云产品满足您的一切所需,深耕云计算领域10余年;我们拥有前沿的核心技术,始终致力于为政府机构、企业组织和个人开发者提供稳定、安全、可靠、高性价比的云计算产品与服务。公司名:珠海市特网科技有限公司官方网站:https://www.56dr.com特网云为您提供高速、稳定、安全、弹性的云计算服务 计算、存储、监控、安全,完善...

SunthyCloud阿里云国际版分销商注册教程,即可PayPal信用卡分销商服务器

阿里云国际版注册认证教程-免绑卡-免实名买服务器安全、便宜、可靠、良心,支持人民币充值,提供代理折扣简介SunthyCloud成立于2015年,是阿里云国际版正规战略级渠道商,也是阿里云国际版最大的分销商,专业为全球企业客户提供阿里云国际版开户注册、认证、充值等服务,通过SunthyCloud开通阿里云国际版只需要一个邮箱,不需要PayPal信用卡就可以帮你开通、充值、新购、续费阿里云国际版,服务...

GigsGigsCloud 春节优惠2022 指定云服务器VPS主机85折循环优惠码

GigsGigsCloud商家在之前介绍的还是比较多的,因为之前我一直有几台机器在使用,只是最近几年网站都陆续转型删除掉不少的网站和闲置域名,包括今年也都减少网站开始转型自媒体方向。GigsGigsCloud 商家产品还是比较有特色的,有提供香港、新加坡等亚洲机房的云服务器、VPS和独立服务器等。第一、新春优惠活动优惠码:CNY2022-15OFF截止到正月初二,我们可以使用上述优惠码在购买指定G...

servererror为你推荐
cisco2960cisco2960接入层交换机支付宝账户是什么支付宝帐号,指的是什么帐号 是网营密码吗asp.net网页制作使用ASP.net技术创建一个网页,如何做?360防火墙在哪里360防火墙curl扩展如何增加mysqli扩展三五互联南京最专业的网站建设公司是哪家?双尚网络做的好不好? 给分求答案灌水机什么是论坛灌水机?在哪里可以下载到呢?关闭评论抖音上购物后给卖家的评价怎么删除掉?dedecms采集织梦后台怎么采集图片财务单据简单财务票据处理 是做什么
查域名 highfrequency uk2 omnis 域名优惠码 外国域名 shopex空间 360抢票助手 evssl证书 php探针 dropbox网盘 panel1 合肥鹏博士 anylink 200g硬盘 免费私人服务器 七夕快乐英语 贵阳电信测速 免费稳定空间 paypal登陆 更多