code: def leaveoneout(self):
          
          traintestfile = self.fileprefix + '.train'
          options = "-F " + self.format + " " +  self.timbloptions + " -t leave_one_out"
          if sys.version < '3':
              self.api = timblapi.TimblAPI(b(options), b"")
          else:
              self.api = timblapi.TimblAPI(options, "")
          if self.debug:
              print("Enabling debug for timblapi",file=stderr)
              self.api.enableDebug()
          print("Calling Timbl API : " + options,file=stderr)
          if sys.version < '3':
              self.api.learn(b(traintestfile))
              self.api.test(b(traintestfile), b(self.fileprefix + '.out'),b'')
          else:
              self.api.learn(u(traintestfile))
              self.api.test(u(traintestfile), u(self.fileprefix + '.out'),'')
          return self.api.getAccuracy()
docs: Train & Test using leave one out