Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ WORKDIR /eis_toolkit

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
git \
libgdal-dev \
python3-pip

RUN pip install poetry pre-commit

COPY poetry.lock pyproject.toml /eis_toolkit/
COPY poetry.lock pyproject.toml ./
COPY README.md ./
COPY eis_toolkit ./eis_toolkit

RUN poetry install

Expand Down
35 changes: 35 additions & 0 deletions THIRD-PARTY-LICENSES
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
This project includes adapted and modified code from the following third-party sources:

---

1. Bayesian Neural Network

Original Source: https://github.com/brendanhasz/tfp-taxi
Original Author: Brendan Hasz, 2018

--- MIT License ---

Copyright (c) 2018 Brendan Hasz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

--- End MIT License ---

Modifications: This code has been adapted and modified from the original version
for integration into the eis_toolkit. The modified file is located at eis_toolkit/prediction/bayesian_neural_network.py.
3 changes: 3 additions & 0 deletions docs/prediction/bayesian_neural_network.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Bayesian neural network

::: eis_toolkit.prediction.bayesian_neural_network
7 changes: 7 additions & 0 deletions eis_toolkit/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2671,6 +2671,13 @@ def gradient_boosting_regressor_train_cli(
ProgressLog.finish()


# BNN CLASSIFIER
@app.command()
def bnn_classifier_train_cli():
"""Train a Bayesian Neural Network classifier model."""
raise Exception("This function is not available yet and needs to be implemented for the CLI.")


# MLP CLASSIFIER
@app.command()
def mlp_classifier_train_cli(
Expand Down
4 changes: 4 additions & 0 deletions eis_toolkit/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ class InvalidCompositionException(Exception):

class SampleSizeExceededException(Exception):
"""Exception error class for when the data exceeds maximum sample size."""


class InsufficientClassesException(Exception):
"""Exception error class for insufficient number of classes for classification tasks."""
Loading