Code Monkey home page Code Monkey logo

planet-amazon-deforestation's Introduction

Kaggle Amazon deforestation challenge

This repository contains the source code of the Kaggle Amazon deforestation challenge

How to use and view the jupyter notebook

The jupyter notebook is stripped to a .py file for version control in the notebook/ folder. To recreate the original .ipynb file and use it with jupyter execute tools/extract_py_notebook.sh (after cloning the repo for example).

When you'll work on the notebook, git will ignore the changes you made to it as specified in the .gitignore file. You need to strip it to a .py file first before pushing it to the repo. To do so and let jupyter automatically create the .py file each time you save your notebook you need to add a script to its configuration simply by executing the following command:

tools/add_jupyter_vc.sh

This command should be only executed once on a system. If you ever run into issues with this new configuration you can restore your original jupyter configuration with:

tools/restore_jupyter_config.sh

/!\ Be careful to not run tools/add_jupyter_vc.sh twice in a row as it will erase your original configuration file forever.

Dependencies

Link to the associated gist preview of the notebook

planet-amazon-deforestation's People

Contributors

dysdsyd avatar ekami avatar jamesrequa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

planet-amazon-deforestation's Issues

Environment information

Thanks a lot for sharing this notebook! Can you share some info about the environment you're running it on? I'm having quite different and worst results that what is printed in the notebook when running it :(

data_helper

Can you help me regarding installation of the data_helper package. I'm not getting to import that package.

Cross entropy

Use cross-entropy on all weather labels of the training data (add the None label to those who don’t have any).
The labels concerned are: clear, partly cloudy, cloudy, haze

Error associated with called 'check'

Hi, trying to run amazon_forest_notebook.py I get the following error:

Traceback (most recent call last):
  File "amazon_forest_notebook.py", line 45, in <module>
    import data_helper
  File "/home/bio/anaconda3/lib/python3.6/site-packages/data_helper/__init__.py", line 3, in <module>
    import check
ModuleNotFoundError: No module named 'check'

How can I solved,
Thanks in advance,
Luis Alfonso

Validation data is used for training

The validation data is sampled in train_model and in the notebook train_model is called several times, therefore validating on data that was previously used for training:

train_losses, val_losses = [], []
epochs_arr = [20, 5, 5]
learn_rates = [0.001, 0.0001, 0.00001]
for learn_rate, epochs in zip(learn_rates, epochs_arr):
    tmp_train_losses, tmp_val_losses, fbeta_score = classifier.train_model(x_train, y_train, learn_rate, epochs, 
                                                                           batch_size, validation_split_size=validation_split_size, 
                                                                           train_callbacks=[checkpoint])
    train_losses += tmp_train_losses
    val_losses += tmp_val_losses

(

for learn_rate, epochs in zip(learn_rates, epochs_arr):
)

I don't think this is intentional so I'm raising the issue :)

Traning Question

Why didn't you freeze any layers of VGG before training with your data ?. Is there any advantage ? How did you decide?

SyntaxError in /src/keras_helper.py

When I run the amazon_forest_notebook.py, there is a syntax error.
Traceback (most recent call last):
File "amazon_forest_notebook.py", line 43, in
from keras_helper import AmazonKerasClassifier
File "../src/keras_helper.py", line 35
self.classifier.add(BatchNormalization(input_shape=(*img_size, img_channels)))
^
SyntaxError: invalid syntax.
Why do I have this error? Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.