LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > Homework 5

Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-2013, 08:15 PM
Michael Reach Michael Reach is offline
Senior Member
 
Join Date: Apr 2013
Location: Baltimore, Maryland, USA
Posts: 71
Default Animation for logistic regression, first 20 epochs



Just practicing animations. Must be a better way to do it: Installed "animation" package in R. Used saveHtml option. Took that link to makegif.com. That created a link with a gif in it. Used Chrome developer tools to extract the gif from the web page, and saved it on my disk. Then used postimage.org to save the image back on a link [now it's an image, not a web page with a image in it]. Then posted [img]lnk[/img] here.
Reply With Quote
  #2  
Old 05-07-2013, 09:18 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,476
Default Re: Animation for logistic regression, first 20 epochs

Quote:
Originally Posted by Michael Reach View Post
Just practicing animations. Must be a better way to do it: Installed "animation" package in R. Used saveHtml option. Took that link to makegif.com. That created a link with a gif in it. Used Chrome developer tools to extract the gif from the web page, and saved it on my disk. Then used postimage.org to save the image back on a link [now it's an image, not a web page with a image in it]. Then posted [img]lnk[/img] here.
On my system, it shows the final epoch only.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #3  
Old 05-08-2013, 06:56 AM
Michael Reach Michael Reach is offline
Senior Member
 
Join Date: Apr 2013
Location: Baltimore, Maryland, USA
Posts: 71
Default Re: Animation for logistic regression, first 20 epochs

I work on several machines. On some it shows the whole animation, on others just the last epoch. Dunno.

Huh: Found this
https://bugzilla.mozilla.org/show_bug.cgi?id=17126
on a Mozilla forum, which reports a similar bug in IE and Mozilla (I was using Chrome). Thread goes on forever, but some kind of browser issue with animated gif files.
Reply With Quote
  #4  
Old 05-08-2013, 07:10 AM
jlaurentum jlaurentum is offline
Member
 
Join Date: Apr 2013
Location: Venezuela
Posts: 41
Default Re: Animation for logistic regression, first 20 epochs

Hello Michael:

What I do is generate a bunch of png graphic files sequentually numbered. Within the R script, I then invoke this

Code:
system("convert -delay 30 *.png youranimation.gif")
This "convert" command is available with ImageMagick, which is a package for Linux. I'm not sure if its available for windows, but if it is, you should install it because its pretty handy.
Reply With Quote
  #5  
Old 05-08-2013, 09:44 AM
Michael Reach Michael Reach is offline
Senior Member
 
Join Date: Apr 2013
Location: Baltimore, Maryland, USA
Posts: 71
Default Re: Animation for logistic regression, first 20 epochs

Yeah, the animation package mentions that you need something like InstaMagick. I'll try that - it is available for Windows. Thanks.
Reply With Quote
  #6  
Old 05-08-2013, 12:18 PM
Elroch Elroch is offline
Invited Guest
 
Join Date: Mar 2013
Posts: 143
Default Re: Animation for logistic regression, first 20 epochs

If it's any help, it's failed to animate on Chrome, Safari, Firefox and IE on my machine.

Looking forward to seeing it when you repost!

[I've noticed it's only 37.5 kb. I suspect this means it cannot be the intended animation, as that would be less than 2k per frame with a moderately complex image]
Reply With Quote
  #7  
Old 05-08-2013, 02:02 PM
Michael Reach Michael Reach is offline
Senior Member
 
Join Date: Apr 2013
Location: Baltimore, Maryland, USA
Posts: 71
Default Re: Animation for logistic regression, first 20 epochs

"Looking forward to seeing it when you repost!"
Heh - you're already starting on the next homework! This is mainly of interest to me, and mostly for the practice doing animations.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:16 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.