Skip to content

Commit

Permalink
Add copyright notice to source files (#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikcs authored Jun 12, 2024
1 parent 5cb7b78 commit abbc9ff
Show file tree
Hide file tree
Showing 132 changed files with 269 additions and 5 deletions.
2 changes: 2 additions & 0 deletions core/src/commons/Data.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/commons/utility.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/commons/utility.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/Forest.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/Forest.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
4 changes: 3 additions & 1 deletion core/src/forest/ForestOptions.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand All @@ -14,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with grf. If not, see <http://www.gnu.org/licenses/>.
#-------------------------------------------------------------------------------*/

#include <thread>
#include <stdexcept>

Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/ForestOptions.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/ForestPredictor.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/ForestPredictor.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/ForestPredictors.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/ForestPredictors.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/ForestTrainer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/ForestTrainer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/ForestTrainers.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/forest/ForestTrainers.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/CausalSurvivalPredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/CausalSurvivalPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/DefaultPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/InstrumentalPredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/InstrumentalPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/LLCausalPredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/LLCausalPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/LocalLinearPredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/LocalLinearPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/MultiCausalPredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/MultiCausalPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/MultiRegressionPredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/MultiRegressionPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/ObjectiveBayesDebiaser.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/ObjectiveBayesDebiaser.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/OptimizedPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/Prediction.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/Prediction.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/PredictionValues.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/PredictionValues.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/ProbabilityPredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/ProbabilityPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/QuantilePredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/QuantilePredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/RegressionPredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/RegressionPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/SurvivalPredictionStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
4 changes: 3 additions & 1 deletion core/src/prediction/SurvivalPredictionStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -45,7 +47,7 @@ class SurvivalPredictionStrategy final: public DefaultPredictionStrategy {
* Note: The reason we don't use OptimizedPredictionStrategy for survival
* curves is that it may require a large memory footprint in the form of
* storing sufficient statistics with a size equal to the length of the
* survival curve. DefaultPredictionStrategy requires less memory. A
* survival curve. DefaultPredictionStrategy requires less memory. A
* drawback is, particularly in the case of shallow trees (as will be
* the case with very few events), more CPU time spent in hash table
* lookups, as a target sample x will match many training samples.
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/collector/DefaultPredictionCollector.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/collector/DefaultPredictionCollector.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/collector/OptimizedPredictionCollector.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/prediction/collector/PredictionCollector.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/relabeling/CausalSurvivalRelabelingStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/relabeling/CausalSurvivalRelabelingStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.
This file is part of generalized random forest (grf).
grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/relabeling/InstrumentalRelabelingStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.

This file is part of generalized random forest (grf).

grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/relabeling/InstrumentalRelabelingStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.

This file is part of generalized random forest (grf).

grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/relabeling/LLRegressionRelabelingStrategy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.

This file is part of generalized random forest (grf).

grf is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions core/src/relabeling/LLRegressionRelabelingStrategy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-------------------------------------------------------------------------------
Copyright (c) 2024 GRF Contributors.

This file is part of generalized random forest (grf).

grf is free software: you can redistribute it and/or modify
Expand Down
Loading

0 comments on commit abbc9ff

Please sign in to comment.