Skip to content

Commit 0a1ef51

Browse files
Make .guess do populations, not generators.
1 parent 271efbf commit 0a1ef51

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

shell/src/core.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -479,22 +479,22 @@ def dot_codebook(self, line):
479479
self.stdout.write(traceback.format_exc())
480480

481481
def dot_guess(self, line):
482-
'''guess data generator
483-
<generator> <table>
482+
'''guess population schema
483+
<population> <table>
484484
485-
Create a generator named <generator> for the table <table>,
486-
guessing the statistical types of the columns in <table>.
485+
Create a population named <population> with variables
486+
corresponding to columns in table <table>, heuristically
487+
guessing their statistical types.
487488
'''
488489
# XXX Lousy, lousy tokenizer.
489490
tokens = line.split()
490491
if len(tokens) != 2:
491-
self.stdout.write('Usage: .guess <generator> <table>\n')
492+
self.stdout.write('Usage: .guess <population> <table>\n')
492493
return
493-
generator = tokens[0]
494+
population = tokens[0]
494495
table = tokens[1]
495496
try:
496-
guess.bayesdb_guess_generator(self._bdb, generator, table,
497-
self._metamodel)
497+
guess.bayesdb_guess_population(self._bdb, population, table)
498498
except Exception:
499499
self.stdout.write(traceback.format_exc())
500500

0 commit comments

Comments
 (0)