INNER CODE UNIT · Python

dot_guess

probcomp/bayeslite · shell/src/core.py:457

    def dot_guess(self, line):
        '''guess population schema
        <population> <table>

        Create a population named <population> with variables
        corresponding to columns in table <table>, heuristically
        guessing their statistical types.
        '''
        # XXX Lousy, lousy tokenizer.
        tokens = line.split()
        if len(tokens) != 2:
            self.stdout.write('Usage: .guess <population> <table>\n')
            return
        population = tokens[0]
        table = tokens[1]
        try:
            guess.bayesdb_guess_population(self._bdb, population, table)
        except Exception:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…