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

弘速云香港VPSVPS线路有CN2+BGP、CN2 GIA,KVM虚拟化架构,裸金属月付564元

弘速云怎么样?弘速云是创建于2021年的品牌,运营该品牌的公司HOSU LIMITED(中文名称弘速科技有限公司)公司成立于2021年国内公司注册于2019年。HOSU LIMITED主要从事出售香港vps、美国VPS、香港独立服务器、香港站群服务器等,目前在售VPS线路有CN2+BGP、CN2 GIA,该公司旗下产品均采用KVM虚拟化架构。可联系商家代安装iso系统。点击进入:弘速云官方网站地址...

DiyVM(50元起)老牌商家,香港沙田CN2直连vps/不限流量/五折终身优惠

diyvm怎么样?diyvm是一家国内成立时间比较久的主机商家了,大约在6年前站长曾经用过他家的美国机房的套餐,非常稳定,适合做站,目前商家正在针对香港沙田机房的VPS进行促销,给的是五折优惠,续费同价,香港沙田机房走的是CN2直连的线路,到大陆地区的速度非常好,DiyVM商家采用小带宽不限流量的形式,带宽2Mbps起步,做站完全够用,有需要的朋友可以入手。diyvm优惠码:五折优惠码:OFF50...

819云(240元)香港CN2 日本CN2 物理机 E5 16G 1T 20M 3IP

819云是我们的老熟人了,服务器一直都是稳定为主,老板人也很好,这次给大家带来了新活动,十分给力 香港CN2 日本CN2 物理机 E5 16G 1T 20M 3IP 240元0官方网站:https://www.819yun.com/ 特惠专员Q:442379204套餐介绍套餐CPU内存硬盘带宽IP价格香港CN2 (特价)E5 随机分配16G1T 机械20M3IP240元/月日本CN2 (...

servererror为你推荐
深圳市福田区国民经济和社会发展thinkphp什么是THINKPHP 和 MVC的概念中国企业在线如何查询企业是否可靠?flashfxp下载我想下载一个FlashFXP 4.0.0 Build 1510 简体中文版的软件,可是不知道下载地址,希望大家帮帮我?重庆网站制作重庆网站制作,哪家专业,价格最优?文档下载怎样在手机上建立word的文档? 需要下载什么软件?爱优网为什么优酷土豆等视频网站那么多人上传视频银花珠树晓来看用黄皮比喻心酸的诗句易名网诚询,易名网注册的域名怎么转到喜欢的网页上啊?电子商务世界美国电子商务的发展经历几个阶段
美国vps服务器 3322动态域名注册 高防服务器租用选锐一 瓦工 linode日本 万网优惠券 轻量 湖南服务器托管 cpanel空间 165邮箱 服务器托管什么意思 太原联通测速 工信部icp备案查询 黑科云 hdsky google搜索打不开 windowsserver2012r2 alexa世界排名 hosting 美国达拉斯 更多