Skip to content

Commit

Permalink
internal
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 329995323
  • Loading branch information
andrewluchen authored and copybara-github committed Sep 3, 2020
1 parent 7e5c2cd commit 82722d3
Show file tree
Hide file tree
Showing 33 changed files with 99 additions and 99 deletions.
6 changes: 3 additions & 3 deletions automl_zero/algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef ALGORITHM_H_
#define ALGORITHM_H_
#ifndef AUTOML_ZERO_ALGORITHM_H_
#define AUTOML_ZERO_ALGORITHM_H_

#include <array>
#include <cstdint>
Expand Down Expand Up @@ -76,4 +76,4 @@ class Algorithm {

} // namespace automl_zero

#endif // ALGORITHM_H_
#endif // AUTOML_ZERO_ALGORITHM_H_
6 changes: 3 additions & 3 deletions automl_zero/algorithm_test_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

// Tools to test code that moves Algorithms around.

#ifndef ALGORITHM_TEST_UTIL_H_
#define ALGORITHM_TEST_UTIL_H_
#ifndef AUTOML_ZERO_ALGORITHM_TEST_UTIL_H_
#define AUTOML_ZERO_ALGORITHM_TEST_UTIL_H_

#include "algorithm.h"
#include "algorithm.pb.h"
Expand Down Expand Up @@ -105,4 +105,4 @@ IntegerT MissingDataInComponentFunction(

} // namespace automl_zero

#endif // ALGORITHM_TEST_UTIL_H_
#endif // AUTOML_ZERO_ALGORITHM_TEST_UTIL_H_
6 changes: 3 additions & 3 deletions automl_zero/compute_cost.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef COMPUTE_COST_H_
#define COMPUTE_COST_H_
#ifndef AUTOML_ZERO_COMPUTE_COST_H_
#define AUTOML_ZERO_COMPUTE_COST_H_

#include "instruction.h"

Expand All @@ -31,4 +31,4 @@ double ComputeCost(const Instruction& instruction);

} // namespace automl_zero

#endif // COMPUTE_COST_H_
#endif // AUTOML_ZERO_COMPUTE_COST_H_
6 changes: 3 additions & 3 deletions automl_zero/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
// -Apply linter.
// -Add more comments, link to paper.

#ifndef DEFINITIONS_H_
#define DEFINITIONS_H_
#ifndef AUTOML_ZERO_DEFINITIONS_H_
#define AUTOML_ZERO_DEFINITIONS_H_

#include <sched.h>

Expand Down Expand Up @@ -319,4 +319,4 @@ NumberT HashMix(NumberT first, NumberT second) {

} // namespace automl_zero

#endif // DEFINITIONS_H_
#endif // AUTOML_ZERO_DEFINITIONS_H_
6 changes: 3 additions & 3 deletions automl_zero/evaluator.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EVALUATOR_H_
#define EVALUATOR_H_
#ifndef AUTOML_ZERO_EVALUATOR_H_
#define AUTOML_ZERO_EVALUATOR_H_

#include <cstdio>
#include <memory>
Expand Down Expand Up @@ -106,4 +106,4 @@ double CombineFitnesses(

} // namespace automl_zero

#endif // EVALUATOR_H_
#endif // AUTOML_ZERO_EVALUATOR_H_
6 changes: 3 additions & 3 deletions automl_zero/executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXECUTOR_H_
#define EXECUTOR_H_
#ifndef AUTOML_ZERO_EXECUTOR_H_
#define AUTOML_ZERO_EXECUTOR_H_

#include <algorithm>
#include <cmath>
Expand Down Expand Up @@ -1431,4 +1431,4 @@ inline double MinusXLogY(const double x, const double y) {

} // namespace automl_zero

#endif // EXECUTOR_H_
#endif // AUTOML_ZERO_EXECUTOR_H_
6 changes: 3 additions & 3 deletions automl_zero/experiment_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef EXPERIMENT_UTIL_H_
#define EXPERIMENT_UTIL_H_
#ifndef AUTOML_ZERO_EXPERIMENT_UTIL_H_
#define AUTOML_ZERO_EXPERIMENT_UTIL_H_

#include <unordered_map>
#include <unordered_set>
Expand All @@ -29,4 +29,4 @@ std::vector<Op> ExtractOps(const google::protobuf::RepeatedField<int>& ops_src);

} // namespace automl_zero

#endif // EXPERIMENT_UTIL_H_
#endif // AUTOML_ZERO_EXPERIMENT_UTIL_H_
6 changes: 3 additions & 3 deletions automl_zero/fec_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FEC_CACHE_H_
#define FEC_CACHE_H_
#ifndef AUTOML_ZERO_FEC_CACHE_H_
#define AUTOML_ZERO_FEC_CACHE_H_

#include <functional>
#include <list>
Expand Down Expand Up @@ -103,4 +103,4 @@ class FECCache {

} // namespace automl_zero

#endif // FEC_CACHE_H_
#endif // AUTOML_ZERO_FEC_CACHE_H_
6 changes: 3 additions & 3 deletions automl_zero/fec_hashing.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FEC_HASHING_H_
#define FEC_HASHING_H_
#ifndef AUTOML_ZERO_FEC_HASHING_H_
#define AUTOML_ZERO_FEC_HASHING_H_

#include <cstddef>

Expand Down Expand Up @@ -42,4 +42,4 @@ size_t WellMixedHash(const std::vector<double>& train_errors,

} // namespace automl_zero

#endif // FEC_HASHING_H_
#endif // AUTOML_ZERO_FEC_HASHING_H_
6 changes: 3 additions & 3 deletions automl_zero/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef GENERATOR_H_
#define GENERATOR_H_
#ifndef AUTOML_ZERO_GENERATOR_H_
#define AUTOML_ZERO_GENERATOR_H_

#include <memory>
#include <random>
Expand Down Expand Up @@ -112,4 +112,4 @@ class Generator {

} // namespace automl_zero

#endif // GENERATOR_H_
#endif // AUTOML_ZERO_GENERATOR_H_
6 changes: 3 additions & 3 deletions automl_zero/generator_test_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef GENERATOR_TEST_UTIL_H_
#define GENERATOR_TEST_UTIL_H_
#ifndef AUTOML_ZERO_GENERATOR_TEST_UTIL_H_
#define AUTOML_ZERO_GENERATOR_TEST_UTIL_H_

#include "algorithm.h"
#include "generator.h"
Expand All @@ -39,4 +39,4 @@ Algorithm SimpleIncreasingDataAlgorithm();

} // namespace automl_zero

#endif // GENERATOR_TEST_UTIL_H_
#endif // AUTOML_ZERO_GENERATOR_TEST_UTIL_H_
6 changes: 3 additions & 3 deletions automl_zero/instruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef INSTRUCTION_H_
#define INSTRUCTION_H_
#ifndef AUTOML_ZERO_INSTRUCTION_H_
#define AUTOML_ZERO_INSTRUCTION_H_

#include <math.h>

Expand Down Expand Up @@ -233,4 +233,4 @@ inline void MutateFloatLogScaleOrFlip(

} // namespace automl_zero

#endif // INSTRUCTION_H_
#endif // AUTOML_ZERO_INSTRUCTION_H_
6 changes: 3 additions & 3 deletions automl_zero/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef MEMORY_H_
#define MEMORY_H_
#ifndef AUTOML_ZERO_MEMORY_H_
#define AUTOML_ZERO_MEMORY_H_

#include <array>

Expand Down Expand Up @@ -71,4 +71,4 @@ void Memory<F>::Wipe() {

} // namespace automl_zero

#endif // MEMORY_H_
#endif // AUTOML_ZERO_MEMORY_H_
6 changes: 3 additions & 3 deletions automl_zero/mutator.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef MUTATOR_H_
#define MUTATOR_H_
#ifndef AUTOML_ZERO_MUTATOR_H_
#define AUTOML_ZERO_MUTATOR_H_

#include <memory>
#include <random>
Expand Down Expand Up @@ -151,4 +151,4 @@ class Mutator {
} // namespace automl_zero


#endif // MUTATOR_H_
#endif // AUTOML_ZERO_MUTATOR_H_
6 changes: 3 additions & 3 deletions automl_zero/random_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef RANDOM_GENERATOR_H_
#define RANDOM_GENERATOR_H_
#ifndef AUTOML_ZERO_RANDOM_GENERATOR_H_
#define AUTOML_ZERO_RANDOM_GENERATOR_H_

#include <limits>
#include <random>
Expand Down Expand Up @@ -166,4 +166,4 @@ void RandomGenerator::FillBeta(

} // namespace automl_zero

#endif // RANDOM_GENERATOR_H_
#endif // AUTOML_ZERO_RANDOM_GENERATOR_H_
6 changes: 3 additions & 3 deletions automl_zero/randomizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef RANDOMIZER_H_
#define RANDOMIZER_H_
#ifndef AUTOML_ZERO_RANDOMIZER_H_
#define AUTOML_ZERO_RANDOMIZER_H_

#include <memory>
#include <random>
Expand Down Expand Up @@ -74,4 +74,4 @@ class Randomizer {

} // namespace automl_zero

#endif // RANDOMIZER_H_
#endif // AUTOML_ZERO_RANDOMIZER_H_
6 changes: 3 additions & 3 deletions automl_zero/regularized_evolution.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef REGULARIZED_EVOLUTION_H_
#define REGULARIZED_EVOLUTION_H_
#ifndef AUTOML_ZERO_REGULARIZED_EVOLUTION_H_
#define AUTOML_ZERO_REGULARIZED_EVOLUTION_H_

#include <memory>
#include <string>
Expand Down Expand Up @@ -121,4 +121,4 @@ class RegularizedEvolution {

} // namespace automl_zero

#endif // REGULARIZED_EVOLUTION_H_
#endif // AUTOML_ZERO_REGULARIZED_EVOLUTION_H_
6 changes: 3 additions & 3 deletions automl_zero/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

// These are called once-per-worker, so they can be slow.

#ifndef TASK_H_
#define TASK_H_
#ifndef AUTOML_ZERO_TASK_H_
#define AUTOML_ZERO_TASK_H_

#include <algorithm>
#include <random>
Expand Down Expand Up @@ -338,4 +338,4 @@ class TaskIterator {

} // namespace automl_zero

#endif // TASK_H_
#endif // AUTOML_ZERO_TASK_H_
6 changes: 3 additions & 3 deletions automl_zero/task_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef TASK_UTIL_H_
#define TASK_UTIL_H_
#ifndef AUTOML_ZERO_TASK_UTIL_H_
#define AUTOML_ZERO_TASK_UTIL_H_

#include <array>
#include <fstream>
Expand Down Expand Up @@ -544,4 +544,4 @@ void RandomizeTaskSeeds(TaskCollection* task_collection,

} // namespace automl_zero

#endif // TASK_UTIL_H_
#endif // AUTOML_ZERO_TASK_UTIL_H_
6 changes: 3 additions & 3 deletions automl_zero/test_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef TEST_UTIL_H_
#define TEST_UTIL_H_
#ifndef AUTOML_ZERO_TEST_UTIL_H_
#define AUTOML_ZERO_TEST_UTIL_H_

#include <functional>
#include <iostream>
Expand Down Expand Up @@ -160,4 +160,4 @@ absl::node_hash_set<std::pair<NumberT, NumberT>> CartesianProduct(

} // namespace automl_zero

#endif // TEST_UTIL_H_
#endif // AUTOML_ZERO_TEST_UTIL_H_
6 changes: 3 additions & 3 deletions automl_zero/train_budget.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef TRAIN_BUDGET_H_
#define TRAIN_BUDGET_H_
#ifndef AUTOML_ZERO_TRAIN_BUDGET_H_
#define AUTOML_ZERO_TRAIN_BUDGET_H_

#include "generator.h"
#include "instruction.h"
Expand Down Expand Up @@ -61,4 +61,4 @@ std::unique_ptr<TrainBudget> BuildTrainBudget(

} // namespace automl_zero

#endif // TRAIN_BUDGET_H_
#endif // AUTOML_ZERO_TRAIN_BUDGET_H_
6 changes: 3 additions & 3 deletions automl_zero/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef UTIL_H_
#define UTIL_H_
#ifndef AUTOML_ZERO_UTIL_H_
#define AUTOML_ZERO_UTIL_H_

#include <cstdlib>
#include <iostream>
Expand Down Expand Up @@ -41,4 +41,4 @@ bool VectorEq(const Vector<F>& observed, const std::vector<double>& expected) {

} // namespace automl_zero

#endif // UTIL_H_
#endif // AUTOML_ZERO_UTIL_H_
6 changes: 3 additions & 3 deletions eeg_modelling/edf/base/canonical_errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_GOOGLE_RESEARCH_GOOGLE_RESEARCH_EEG_MODELLING_BASE_CANONICAL_ERRORS_H_
#define THIRD_PARTY_GOOGLE_RESEARCH_GOOGLE_RESEARCH_EEG_MODELLING_BASE_CANONICAL_ERRORS_H_
#ifndef EEG_MODELLING_BASE_CANONICAL_ERRORS_H_
#define EEG_MODELLING_BASE_CANONICAL_ERRORS_H_

#include "absl/base/attributes.h"
#include "absl/strings/string_view.h"
Expand Down Expand Up @@ -66,4 +66,4 @@ ABSL_MUST_USE_RESULT bool IsUnimplemented(const Status& status);
ABSL_MUST_USE_RESULT bool IsUnknown(const Status& status);

} // namespace eeg_modelling
#endif // THIRD_PARTY_GOOGLE_RESEARCH_GOOGLE_RESEARCH_EEG_MODELLING_BASE_CANONICAL_ERRORS_H_
#endif // EEG_MODELLING_BASE_CANONICAL_ERRORS_H_
Loading

0 comments on commit 82722d3

Please sign in to comment.