1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4791],{94287:(e,n,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/classes/LeaveOneGroupOut",function(){return s(75561)}])},75561:(e,n,s)=>{"use strict";s.r(n),s.d(n,{default:()=>c,useTOC:()=>l});var r=s(86106),t=s(30138),d=s(32126),i=s(69912);function l(e){return[{value:"Constructors",id:"constructors",depth:2},{value:"new LeaveOneGroupOut()",id:"new-leaveonegroupout",depth:3},{value:"Properties",id:"properties",depth:2},{value:"Accessors",id:"accessors",depth:2},{value:"py",id:"py",depth:3},{value:"Methods",id:"methods",depth:2},{value:"dispose()",id:"dispose",depth:3},{value:"get_metadata_routing()",id:"get_metadata_routing",depth:3},{value:"get_n_splits()",id:"get_n_splits",depth:3},{value:"init()",id:"init",depth:3},{value:"set_split_request()",id:"set_split_request",depth:3},{value:"split()",id:"split",depth:3}]}let c=(0,t.e)(function(e){let{toc:n=l(e)}=e,s={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{children:"Class: LeaveOneGroupOut"}),"\n",(0,r.jsx)(s.p,{children:"Leave One Group Out cross-validator."}),"\n",(0,r.jsx)(s.p,{children:"Provides train/test indices to split data such that each training set is comprised of all samples except ones belonging to one specific group. Arbitrary domain specific group information is provided as an array of integers that encodes the group of each sample."}),"\n",(0,r.jsx)(s.p,{children:"For instance the groups could be the year of collection of the samples and thus allow for cross-validation against time-based splits."}),"\n",(0,r.jsxs)(s.p,{children:["Read more in the ",(0,r.jsx)(s.a,{href:"https://scikit-learn.org/stable/modules/generated/../cross_validation.html#leave-one-group-out",children:"User Guide"}),"."]}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.a,{href:"https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.LeaveOneGroupOut.html",children:"Python Reference"})}),"\n",(0,r.jsx)(s.h2,{id:n[0].id,children:n[0].value}),"\n",(0,r.jsx)(s.h3,{id:n[1].id,children:n[1].value}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"new LeaveOneGroupOut"}),"(",(0,r.jsx)(s.code,{children:"opts"}),"?): ",(0,r.jsx)(s.a,{href:"LeaveOneGroupOut",children:(0,r.jsx)(s.code,{children:"LeaveOneGroupOut"})})]}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.strong,{children:"Parameters"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Parameter"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts"}),"?"]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"object"})}),(0,r.jsx)(s.td,{children:"-"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts.routing"}),"?"]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"any"})}),(0,r.jsxs)(s.td,{children:["A ",(0,r.jsx)(s.a,{href:"https://scikit-learn.org/stable/modules/generated/sklearn.utils.metadata_routing.MetadataRequest.html#sklearn.utils.metadata_routing.MetadataRequest",title:"sklearn.utils.metadata_routing.MetadataRequest",children:(0,r.jsx)(s.code,{children:"MetadataRequest"})})," encapsulating routing information."]})]})]})]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Returns"})," ",(0,r.jsx)(s.a,{href:"LeaveOneGroupOut",children:(0,r.jsx)(s.code,{children:"LeaveOneGroupOut"})})]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Defined in"})," ",(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L27",children:"generated/model_selection/LeaveOneGroupOut.ts:27"})]}),"\n",(0,r.jsx)(s.h2,{id:n[2].id,children:n[2].value}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Property"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Default value"}),(0,r.jsx)(s.th,{children:"Defined in"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"_isDisposed"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"boolean"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"false"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L25",children:"generated/model_selection/LeaveOneGroupOut.ts:25"})})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"_isInitialized"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"boolean"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"false"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L24",children:"generated/model_selection/LeaveOneGroupOut.ts:24"})})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"_py"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"PythonBridge"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"undefined"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L23",children:"generated/model_selection/LeaveOneGroupOut.ts:23"})})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"id"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"string"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"undefined"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L20",children:"generated/model_selection/LeaveOneGroupOut.ts:20"})})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"opts"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"any"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"undefined"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L21",children:"generated/model_selection/LeaveOneGroupOut.ts:21"})})]})]})]}),"\n",(0,r.jsx)(s.h2,{id:n[3].id,children:n[3].value}),"\n",(0,r.jsx)(s.h3,{id:n[4].id,children:n[4].value}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.strong,{children:"Get Signature"})}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"get"})," ",(0,r.jsx)(s.strong,{children:"py"}),"(): ",(0,r.jsx)(s.code,{children:"PythonBridge"})]}),"\n"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Returns"})," ",(0,r.jsx)(s.code,{children:"PythonBridge"})]}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.strong,{children:"Set Signature"})}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"set"})," ",(0,r.jsx)(s.strong,{children:"py"}),"(",(0,r.jsx)(s.code,{children:"pythonBridge"}),"): ",(0,r.jsx)(s.code,{children:"void"})]}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.strong,{children:"Parameters"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Parameter"}),(0,r.jsx)(s.th,{children:"Type"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"pythonBridge"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"PythonBridge"})})]})})]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Returns"})," ",(0,r.jsx)(s.code,{children:"void"})]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Defined in"})," ",(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L37",children:"generated/model_selection/LeaveOneGroupOut.ts:37"})]}),"\n",(0,r.jsx)(s.h2,{id:n[5].id,children:n[5].value}),"\n",(0,r.jsx)(s.h3,{id:n[6].id,children:n[6].value}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"dispose"}),"(): ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"void"}),">"]}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:"Disposes of the underlying Python resources."}),"\n",(0,r.jsxs)(s.p,{children:["Once ",(0,r.jsx)(s.code,{children:"dispose()"})," is called, the instance is no longer usable."]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Returns"})," ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"void"}),">"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Defined in"})," ",(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L91",children:"generated/model_selection/LeaveOneGroupOut.ts:91"})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h3,{id:n[7].id,children:n[7].value}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"get_metadata_routing"}),"(",(0,r.jsx)(s.code,{children:"opts"}),"): ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"any"}),">"]}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:"Get metadata routing of this object."}),"\n",(0,r.jsxs)(s.p,{children:["Please check ",(0,r.jsx)(s.a,{href:"https://scikit-learn.org/stable/modules/generated/../../metadata_routing.html#metadata-routing",children:"User Guide"})," on how the routing mechanism works."]}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.strong,{children:"Parameters"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Parameter"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"opts"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"object"})}),(0,r.jsx)(s.td,{children:"-"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts.routing"}),"?"]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"any"})}),(0,r.jsxs)(s.td,{children:["A ",(0,r.jsx)(s.a,{href:"https://scikit-learn.org/stable/modules/generated/sklearn.utils.metadata_routing.MetadataRequest.html#sklearn.utils.metadata_routing.MetadataRequest",title:"sklearn.utils.metadata_routing.MetadataRequest",children:(0,r.jsx)(s.code,{children:"MetadataRequest"})})," encapsulating routing information."]})]})]})]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Returns"})," ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"any"}),">"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Defined in"})," ",(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L110",children:"generated/model_selection/LeaveOneGroupOut.ts:110"})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h3,{id:n[8].id,children:n[8].value}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"get_n_splits"}),"(",(0,r.jsx)(s.code,{children:"opts"}),"): ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"number"}),">"]}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:"Returns the number of splitting iterations in the cross-validator."}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.strong,{children:"Parameters"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Parameter"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"opts"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"object"})}),(0,r.jsx)(s.td,{children:"-"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts.groups"}),"?"]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"ArrayLike"})}),(0,r.jsx)(s.td,{children:"Group labels for the samples used while splitting the dataset into train/test set. This âgroupsâ parameter must always be specified to calculate the number of splits, though the other parameters can be omitted."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts.X"}),"?"]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"any"})}),(0,r.jsx)(s.td,{children:"Always ignored, exists for compatibility."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts.y"}),"?"]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"any"})}),(0,r.jsx)(s.td,{children:"Always ignored, exists for compatibility."})]})]})]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Returns"})," ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"number"}),">"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Defined in"})," ",(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L146",children:"generated/model_selection/LeaveOneGroupOut.ts:146"})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h3,{id:n[9].id,children:n[9].value}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"init"}),"(",(0,r.jsx)(s.code,{children:"py"}),"): ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"void"}),">"]}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:"Initializes the underlying Python resources."}),"\n",(0,r.jsxs)(s.p,{children:["This instance is not usable until the ",(0,r.jsx)(s.code,{children:"Promise"})," returned by ",(0,r.jsx)(s.code,{children:"init()"})," resolves."]}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.strong,{children:"Parameters"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Parameter"}),(0,r.jsx)(s.th,{children:"Type"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"py"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"PythonBridge"})})]})})]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Returns"})," ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"void"}),">"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Defined in"})," ",(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L50",children:"generated/model_selection/LeaveOneGroupOut.ts:50"})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h3,{id:n[10].id,children:n[10].value}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"set_split_request"}),"(",(0,r.jsx)(s.code,{children:"opts"}),"): ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{childr
1en:"any"}),">"]}),"\n"]}),"\n",(0,r.jsxs)(s.p,{children:["Request metadata passed to the ",(0,r.jsx)(s.code,{children:"split"})," method."]}),"\n",(0,r.jsxs)(s.p,{children:["Note that this method is only relevant if ",(0,r.jsx)(s.code,{children:"enable_metadata_routing=True"})," (see ",(0,r.jsx)(s.a,{href:"https://scikit-learn.org/stable/modules/generated/sklearn.set_config.html#sklearn.set_config",title:"sklearn.set_config",children:(0,r.jsx)(s.code,{children:"sklearn.set_config"})}),"). Please see ",(0,r.jsx)(s.a,{href:"https://scikit-learn.org/stable/modules/generated/../../metadata_routing.html#metadata-routing",children:"User Guide"})," on how the routing mechanism works."]}),"\n",(0,r.jsx)(s.p,{children:"The options for each parameter are:"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.strong,{children:"Parameters"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Parameter"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"opts"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"object"})}),(0,r.jsx)(s.td,{children:"-"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts.groups"}),"?"]}),(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"string"})," | ",(0,r.jsx)(s.code,{children:"boolean"})]}),(0,r.jsxs)(s.td,{children:["Metadata routing for ",(0,r.jsx)(s.code,{children:"groups"})," parameter in ",(0,r.jsx)(s.code,{children:"split"}),"."]})]})]})]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Returns"})," ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"any"}),">"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Defined in"})," ",(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L194",children:"generated/model_selection/LeaveOneGroupOut.ts:194"})]}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h3,{id:n[11].id,children:n[11].value}),"\n",(0,r.jsxs)(s.blockquote,{children:["\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"split"}),"(",(0,r.jsx)(s.code,{children:"opts"}),"): ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"ArrayLike"}),">"]}),"\n"]}),"\n",(0,r.jsx)(s.p,{children:"Generate indices to split data into training and test set."}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.strong,{children:"Parameters"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Parameter"}),(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"opts"})}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"object"})}),(0,r.jsx)(s.td,{children:"-"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts.groups"}),"?"]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"ArrayLike"})}),(0,r.jsx)(s.td,{children:"Group labels for the samples used while splitting the dataset into train/test set."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts.X"}),"?"]}),(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"ArrayLike"}),"[]"]}),(0,r.jsxs)(s.td,{children:["Training data, where ",(0,r.jsx)(s.code,{children:"n_samples"})," is the number of samples and ",(0,r.jsx)(s.code,{children:"n_features"})," is the number of features."]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsxs)(s.td,{children:[(0,r.jsx)(s.code,{children:"opts.y"}),"?"]}),(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"ArrayLike"})}),(0,r.jsx)(s.td,{children:"The target variable for supervised learning problems."})]})]})]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Returns"})," ",(0,r.jsx)(s.code,{children:"Promise"}),"<",(0,r.jsx)(s.code,{children:"ArrayLike"}),">"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:"Defined in"})," ",(0,r.jsx)(s.a,{href:"https://github.com/transitive-bullshit/scikit-learn-ts/blob/bab9a6d8b9738b16b8b9ba0b3f7cea1495d968d8/packages/sklearn/src/generated/model_selection/LeaveOneGroupOut.ts#L230",children:"generated/model_selection/LeaveOneGroupOut.ts:230"})]})]})},"/docs/classes/LeaveOneGroupOut",{filePath:"pages/docs/classes/LeaveOneGroupOut.md",timestamp:1732212889e3,pageMap:d.O,frontMatter:{},title:"Class: LeaveOneGroupOut"},"undefined"==typeof RemoteContent?l:RemoteContent.useTOC)}},e=>{var n=n=>e(e.s=n);
1e.O(0,[138,2126,636,6593,8792],()=>n(94287)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.