From bd51d8da9f1a40cd9b363db5a5c02198da2ca2a3 Mon Sep 17 00:00:00 2001 From: Chen Liang Date: Mon, 30 Mar 2020 18:29:57 -0700 Subject: [PATCH] Update setup.sh, g++ requirements, and eigen_archive to solve dependency issues. PiperOrigin-RevId: 303866545 --- automl_zero/README.md | 4 ++-- automl_zero/WORKSPACE | 7 ++++--- automl_zero/requirements.txt | 6 ------ automl_zero/setup.sh | 2 +- 4 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 automl_zero/requirements.txt diff --git a/automl_zero/README.md b/automl_zero/README.md index a2947d53ff8..0bd122745b8 100644 --- a/automl_zero/README.md +++ b/automl_zero/README.md @@ -24,7 +24,7 @@ More examples, analysis, and details can be found in the [paper](https://arxiv.o As a miniature "AutoML-Zero" experiment, let's try to automatically discover programs to solve linear regression tasks. -To get started, first install `bazel` following instructions [here](https://docs.bazel.build/versions/master/install.html) (bazel>=2.2.0 and C++>=14 are required), then run the demo with: +To get started, first install `bazel` following instructions [here](https://docs.bazel.build/versions/master/install.html) (bazel>=2.2.0 and g++>=9 are required), then run the demo with: ``` git clone https://github.com/google-research/google-research.git @@ -58,7 +58,7 @@ In this human designed program, the ```Setup``` function establishes a learning ## Reproducing Search Baselines -First install `bazel` following instructions [here](https://docs.bazel.build/versions/master/install.html) (bazel>=2.2.0 and C++>=14 are required),then run the following command to reproduce the results in Supplementary +First install `bazel` following instructions [here](https://docs.bazel.build/versions/master/install.html) (bazel>=2.2.0 and g++>=9 are required),then run the following command to reproduce the results in Supplementary Section 9 ("Baselines") with the "Basic" method on 1 process (1 CPU): *[To be continued, ETA: March, 2020]* diff --git a/automl_zero/WORKSPACE b/automl_zero/WORKSPACE index 6a0626acde8..79b6e7197d1 100644 --- a/automl_zero/WORKSPACE +++ b/automl_zero/WORKSPACE @@ -68,10 +68,11 @@ http_archive( http_archive( name = "eigen_archive", build_file = "//:eigen.BUILD", - sha256 = "88e95180a7eae9acd3e79d2efeea1026eefad9f515a44418b63b189a1887108c", # SHARED_EIGEN_SHA - strip_prefix = "eigen-52a2fbbb008a47c5e3fb8ac1c65c2feecb0c511c", + sha256 = "9a01fed6311df359f3f9af119fcf298a3353aef7d1b1bc86f6c8ae0ca6a2f842", + strip_prefix = "/eigen-eigen-5d5dd50b2eb6", urls = [ - "https://gitlab.com/libeigen/eigen/-/archive/52a2fbbb008a47c5e3fb8ac1c65c2feecb0c511c/eigen-52a2fbbb008a47c5e3fb8ac1c65c2feecb0c511c.tar.gz", + "https://mirror.bazel.build/bitbucket.org/eigen/eigen/get/5d5dd50b2eb6.zip", + "https://bitbucket.org/eigen/eigen/get/5d5dd50b2eb6.zip", ], ) diff --git a/automl_zero/requirements.txt b/automl_zero/requirements.txt deleted file mode 100644 index c51d48e2172..00000000000 --- a/automl_zero/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -tensorflow==2.1.0 -tensorflow-datasets==2.1.0 -sklearn==0.0 -scikit-learn==0.22.2.post1 -numpy==1.18.2 -protobuf==3.11.3 diff --git a/automl_zero/setup.sh b/automl_zero/setup.sh index 7cb00c25fa5..9ac1531c0f1 100644 --- a/automl_zero/setup.sh +++ b/automl_zero/setup.sh @@ -14,7 +14,7 @@ #!/bin/bash -pip install -r requirements.txt +pip install tensorflow_datasets tensorflow sklearn numpy # If the task_pb2.py doesn't work, you will need to install protobuf compiler # (https://github.com/protocolbuffers/protobuf/blob/master/README.md#protocol-compiler-installation) # and run the line below to compite the protobuf for your environment.