Skip to content

Commit

Permalink
Merge pull request #1 from yilei/absl
Browse files Browse the repository at this point in the history
Use absl-py instead of google-apputils and python-gflags.
  • Loading branch information
rostamiz authored May 10, 2019
2 parents 9eba67d + 3cf15e0 commit efedd8f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
absl-py
numpy>=1.13
scipy>=0.19
pandas>=0.20
scikit-learn>=0.19
matplotlib>=2.0.2
tensorflow>=1.3
keras>=2.0.8
google-apputils>=0.4.2

6 changes: 3 additions & 3 deletions run_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
from sklearn.preprocessing import normalize
from sklearn.preprocessing import StandardScaler

from google.apputils import app
import gflags as flags
from absl import app
from absl import flags
from tensorflow import gfile

from sampling_methods.constants import AL_MAPPING
Expand Down Expand Up @@ -341,4 +341,4 @@ def main(argv):


if __name__ == "__main__":
app.run()
app.run(main)
6 changes: 3 additions & 3 deletions utils/chart_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages

from google.apputils import app
import gflags as flags
from absl import app
from absl import flags
from tensorflow import gfile

flags.DEFINE_string('source_dir',
Expand Down Expand Up @@ -227,4 +227,4 @@ def main(argv):


if __name__ == '__main__':
app.run()
app.run(main)
6 changes: 3 additions & 3 deletions utils/create_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer

from google.apputils import app
import gflags as flags
from absl import app
from absl import flags
from tensorflow import gfile

flags.DEFINE_string('save_dir', '/tmp/data',
Expand Down Expand Up @@ -281,4 +281,4 @@ def main(argv):


if __name__ == '__main__':
app.run()
app.run(main)

0 comments on commit efedd8f

Please sign in to comment.