Giter VIP home page Giter VIP logo

ml-course's People

Contributors

eugenmihailescu avatar gniziemazity 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

Watchers

 avatar  avatar  avatar

ml-course's Issues

viewer.html crashes the web browser

While loading the viewer.html file the web browser crashes (the error message may vary with different browsers). The root cause can be either the web browser V8 engine instance has not enough allocated memory or there are too many open files (.png images).

While the memory error can be mitigated by starting the browser with --disable-extensions --max_old_space_size=8192 the too many open files error may be challenging (see Linux ulimit).

A better and easier approach would be to use the image's loading attribute with the value of lazy, ie:

<img src="..." loading="lazy"/>

To fix this change the createRow function of web/js/display.js file as following:

BEFORE

...
const img=document.createElement('img');
...

AFTER

...
const img=document.createElement('img');
img.setAttribute("loading","lazy");
...

ENOENT running the postinstall script

Running the npm install on any node directory of the P3-P9 lessons will throw the following error right after generating the dataset successfully:

Error: ENOENT: no such file or directory, open '../common/js_objects/samples.js'

The dataset_generator.js:61 expects the common/js_objects directory to exist. While it exists for the P2 lesson, it doesn't for the other lessons.

The solution would be to create the common/js_objectsdirectory (if not exists) before running the npm install.

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.