-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ef4d10
commit 7347be9
Showing
1 changed file
with
0 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
import os # this is for travis only | ||
import matplotlib as mpl # this is for travis only | ||
from autonomio.commands import data, train | ||
|
||
if os.environ.get('DISPLAY','') == '': # this is for travis only | ||
print('no display found. Using non-interactive Agg backend') # this is for travis only | ||
mpl.use('Agg') # this is for travis only | ||
|
||
tweets = data('random_tweets') | ||
tr = train('text','neg',tweets.head(5000)) |