Code Monkey home page Code Monkey logo

line-classification-slope's People

Contributors

chriszethird avatar

Watchers

 avatar  avatar

line-classification-slope's Issues

Derivative

A look at the derivative of stability diagrams to see if it can improves the angle detection.

MicrosoftTeams-image (1)

Lines incorrectly shown

There is either a problem in how the lines are fetch or how they are drawn over the imshow. They
patch_sample

Training on synthetic data

Resampling dataset and reducing network size did not work. Last way to solve the issue could be to train on synthetic data and test on experimental one.

Lines segment not plot for DQD

Changed the way lines are selected, only takes the segment of a line crossing effectively the patch but nothing is displayed.
image

Examples of segment:

([52, 17], [2, 7])
([23, -21], [12, 18])
([23, -19], [2, 7])
([-83, 0], [29, 16])

Weird behavior of list of coordinates in iteration

While rotating random images to test the model with a wider range of angles, the program gets an error while unpacking coordinates. Here is an example

line coords: [([-31.0, 135.0, 229.0, 323.0, 468.0], [9.999999046325684, 41.00000762939453, 61.0000114440918, 79.00001525878906, 110.0000228881836])]

This makes no sense at all.

Colors of line

The patches contain lines either of light color or dark one, the network might struggle differentiating them. Training a network to recognize the angle of lines of various shades could solve the issue.

Incorrect prediction while testing after training network

Currently network doesn't give a correct output when running test_network.py. Output is always 0.4202.

  • Diagrams are not all the same
  • Lines are correctly calculated
  • Angles are correctly calculates

In training (simple_network.py) the y_pred is always the same (line 89).

Mismatching number of patch for one line

For some reason each lines intersecting a diagram leads to generate in the patch list for one line, 18 diagrams, causing big issue with the length for visualization, and in general makes no sense at all.

Resampling data

As shown in issue #7 the angles are not well distributed with a strong imbalance for angles between 0.41 and 0.48. This issue explores resampling for better training.
image

Change the way model is saved

Model and Plot should be saved together instead of being separated. Could be easier then to see the loss in relation to the model.

CNN for angle recognition

Summary

As explained in the main issue note #7, the FF cannot find the angle among the noise, even with the derivative of the diagrams, or when it's trained with synthetic data. Instead of a FF, we could use a CNN, much more accurate for this kind of problem. It seems to be a rational alternative considering all the options found while trying to solve the FF prediction problem.

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.