Mar 23, 2021It would be nice if you explain why you use the meanSquaredError as loss and not a…11Aral Roca GomezI changed this:I changed this: sigmoid + sigmoid + sigmoid + meanSquaredError to: relu + relu + sigmoid + binaryCrossentropy And seems that the prediction is quite better: Tensor [[0.9998419, 4e-7 ], [0.9998978, 8e-7 ], [0 , 0.9999998], [0 , 0.9999999]]1 min read1 min read
Sep 20, 2020Etiketai — speed up training your AI models with a free open source appOriginal article: https://aralroca.com/blog/etiketai I’d like to tell you why I made Etiketai, a tool that makes it easier to train image recognition AI models (ImageNet, YOLO and its variants) from any device ensuring security. A little bit of context When we want to directly use existing image recognition models such as ImageNet, COCO-ssd or YOLO…JavaScript4 min readJavaScript4 min read
Aug 17, 2020First steps with WebAssembly in RustOriginal article: https://aralroca.com/blog/first-steps-webassembly-rust We’ll see how to run native code in the browser, doing faster web applications, being able to reuse old code like retro videogames, and at the same time learning the future of web development. What is WebAssembly? In all current browsers, there is a JavaScript engine that interprets and executes…Rustlang8 min readRustlang8 min read
Aug 9, 2020Member-onlyHow to draw gears in WebGLOriginal article: https://aralroca.com/blog/how-to-draw-gears-in-webgl In this article we continue what we started in “First steps in WebGL”, where we saw what it is and how it works internally: the shaders, the program, buffers, how to link data from CPU to GPU, and finally how to render a triangle. …Webgl12 min readWebgl12 min read
Jul 29, 2020Static Readme RegenerationOriginal post: https://aralroca.com/blog/static-readme-regeneration GitHub has recently introduced a “secret” feature to show a markdown template on your profile page. You may have heard about this. All you need to do is create a repo named with your username and create the README.md file there. When we think of a template…Github5 min readGithub5 min read
Jul 20, 2020First steps in WebGLOriginal post: https://aralroca.com/blog/first-steps-in-webgl In this article, we’ll see what WebGL is and how to draw a triangle by talking to the graphics processing unit (GPU). Although this simple example could be solved in better ways, such as using a canvas with a 2d context or even with CSS, what we…JavaScript7 min readJavaScript7 min read
Jul 7, 2020Image classifier: in the browserOriginal article: https://aralroca.com/blog/cat-dog-classifier This is a small tutorial to implement an application that predicts if it’s a cat or a dog image. To do this we’ll use Tensorflow.js to make the prediction directly on the browser. I recommend reading this other article where I introduce Tensorflow.js. However, after this, you’ll…Tensorflowjs7 min readTensorflowjs7 min read
Jun 22, 2020Discovering SnowpackOriginal article: https://aralroca.com/blog/discovering-snowpack In today’s article, we’ll do some exploring to see what Snowpack is and what are its advantages. In the last few months, I’ve heard a lot of talk about Snowpack and I hadn’t given it a chance. The time has come.JavaScript4 min readJavaScript4 min read
May 17, 2020From Node to DenoOriginal article: https://aralroca.com/blog/from-node-to-deno Last week I published an article about Deno, and how to create a Chat app with Deno and Preact. Since then, many doubts have arisen. Mostly of them are about how to do the same thing we did in Node, but with the new Deno ecosystem. I’ve…Node9 min readNode9 min read
May 12, 2020How to create pagination badgesOriginal article: https://aralroca.com/blog/pagination-badges The purpose of this short article is to share a helper function to create typical paging badges. I have used this helper on several places and I think it can be useful for anyone who needs it.JavaScript2 min readJavaScript2 min read