Skip to content

Commit

Permalink
Move tuning code to tune directory.
Browse files Browse the repository at this point in the history
Add braces to high level include files.
  • Loading branch information
akleeman committed Mar 27, 2019
1 parent fad454e commit 8becc67
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 40 deletions.
4 changes: 1 addition & 3 deletions include/albatross/Common
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
#include <random>

#include <albatross/utils/map_utils.h>
#include <albatross/core/indexing.h>
#include <albatross/utils/random_utils.h>
#include <albatross/cereal/eigen.h>

#endif
#endif
20 changes: 11 additions & 9 deletions include/albatross/Core
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
#include "Dataset"

#include <type_traits>
#include "core/declarations.h"
#include "core/traits.h"
#include "core/priors.h"
#include "core/parameter_handling_mixin.h"
#include "core/parameter_macros.h"
#include "core/fit_model.h"
#include "core/prediction.h"
#include "core/model.h"

#endif
#include <albatross/core/declarations.h>
#include <albatross/core/indexing.h>
#include <albatross/core/traits.h>
#include <albatross/core/priors.h>
#include <albatross/core/parameter_handling_mixin.h>
#include <albatross/core/parameter_macros.h>
#include <albatross/core/fit_model.h>
#include <albatross/core/prediction.h>
#include <albatross/core/model.h>

#endif
6 changes: 3 additions & 3 deletions include/albatross/Dataset
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#ifndef ALBATROSS_DATASET_H
#define ALBATROSS_DATASET_H

#include "Distribution"
#include <albatross/Distribution>

#include "core/dataset.h"
#include <albatross/core/dataset.h>

#endif
#endif
12 changes: 6 additions & 6 deletions include/albatross/Distribution
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

#include "Common"

#include "cereal/traits.h"
#include "eigen/serializable_diagonal_matrix.h"
#include <albatross/cereal/traits.h>
#include <albatross/eigen/serializable_diagonal_matrix.h>

#include "core/declarations.h"
#include "core/indexing.h"
#include "core/distribution.h"
#include <albatross/core/declarations.h>
#include <albatross/core/indexing.h>
#include <albatross/core/distribution.h>

#endif
#endif
14 changes: 7 additions & 7 deletions include/albatross/Evaluation
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

#include "Core"

#include "evaluation/likelihood.h"
#include "evaluation/traits.h"
#include "evaluation/folds.h"
#include "evaluation/evaluate.h"
#include "evaluation/cross_validation_utils.h"
#include "evaluation/cross_validation.h"
#include <albatross/evaluation/likelihood.h>
#include <albatross/evaluation/traits.h>
#include <albatross/evaluation/folds.h>
#include <albatross/evaluation/evaluate.h>
#include <albatross/evaluation/cross_validation_utils.h>
#include <albatross/evaluation/cross_validation.h>

#endif
#endif
9 changes: 4 additions & 5 deletions include/albatross/GP
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
#ifndef ALBATROSS_GP_H
#define ALBATROSS_GP_H

#include "Core"
#include "CovarianceFunctions"
#include "Evaluation"

#include "eigen/serializable_ldlt.h"
#include "evaluation/cross_validation_utils.h"
#include "models/gp.h"
#include <albatross/eigen/serializable_ldlt.h>
#include <albatross/models/gp.h>

#endif
#endif
18 changes: 18 additions & 0 deletions include/albatross/LeastSquares
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2019 Swift Navigation Inc.
* Contact: Swift Navigation <dev@swiftnav.com>
*
* This source is subject to the license found in the file 'LICENSE' which must
* be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/

#ifndef ALBATROSS_LEAST_SQUARES_H
#define ALBATROSS_LEAST_SQUARES_H

#include <albatross/models/least_squares.h>

#endif
6 changes: 5 additions & 1 deletion include/albatross/Ransac
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#ifndef ALBATROSS_RANSAC_H
#define ALBATROSS_RANSAC_H

#include "models/ransac.h"
#include "Core"
#include "Evaluation"

#include <albatross/utils/random_utils.h>
#include <albatross/models/ransac.h>

#endif
6 changes: 3 additions & 3 deletions include/albatross/Tune
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <albatross/Core>
#include <albatross/Evaluation>
#include <albatross/utils/tuning_metrics.h>
#include <albatross/utils/tune.h>
#include <albatross/tune/tuning_metrics.h>
#include <albatross/tune/tune.h>

#endif
#endif
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/test_evaluate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <gtest/gtest.h>

#include <albatross/Evaluation>
#include "test_utils.h"

namespace albatross {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <albatross/GP>
#include <albatross/Ransac>
#include <albatross/models/least_squares.h>
#include <albatross/LeastSquares>
#include <gtest/gtest.h>

#include "test_utils.h"
Expand Down
6 changes: 5 additions & 1 deletion tests/test_random_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/
#include <albatross/Common>
#include <gtest/gtest.h>

#include <albatross/Common>

#include <albatross/core/indexing.h>
#include <albatross/utils/random_utils.h>

namespace albatross {

TEST(test_random_utils, randint_without_replacement) {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_serializable_ldlt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/

#include <albatross/Common>
#include <albatross/Core>
#include <albatross/eigen/serializable_ldlt.h>
#include <gtest/gtest.h>

Expand Down

0 comments on commit 8becc67

Please sign in to comment.