<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[The Data Entries]]></title><description><![CDATA[More than what meets the AI @ NYP AI]]></description><link>https://blog.nyp.ai/</link><image><url>https://blog.nyp.ai/favicon.png</url><title>The Data Entries</title><link>https://blog.nyp.ai/</link></image><generator>Ghost 5.82</generator><lastBuildDate>Tue, 07 Apr 2026 12:55:45 GMT</lastBuildDate><atom:link href="https://blog.nyp.ai/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[NYPAI: Our Final Commit (2022 - 2023)]]></title><description><![CDATA[<p>Hello everyone, this is Karthik, the previous president of NYP AI. The time has come for me to write this final blog post. This marks the last blog from the current NYP AI Team, soon to be succeeded by Wen Bing and his team. This blog aims to remind our</p>]]></description><link>https://blog.nyp.ai/our-final-commit/</link><guid isPermaLink="false">64e37e252ead7b0398e48287</guid><dc:creator><![CDATA[Karthik Gangula]]></dc:creator><pubDate>Sun, 19 May 2024 13:08:51 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2024/05/1715522533503.jpeg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.nyp.ai/content/images/2024/05/1715522533503.jpeg" alt="NYPAI: Our Final Commit (2022 - 2023)"><p>Hello everyone, this is Karthik, the previous president of NYP AI. The time has come for me to write this final blog post. This marks the last blog from the current NYP AI Team, soon to be succeeded by Wen Bing and his team. This blog aims to remind our current excos and members what events we have worked on and also share some of the lessons we have learnt along the way so that the next team can set the bar even higher. </p><h2 id="highlights-of-the-year-%F0%9F%A4%A9">Highlights of the Year &#x1F929;</h2><p>So without further ado, let&apos;s talk about the 3 of our biggest events of  the year: </p><h3 id="pentahacks-2023">PentaHacks 2023</h3><p>This was the first event where we collaborated with the AI clubs from other schools such as Singapore Polytechnic, Ngee Ann Polytechnic, and more. We organised a hackathon in early March of 2023 and saw a very good turnout of over 200 participants. This first event was invaluable because it helped us expand our connection to other schools which will open up more doors for collaboration. It also showed us that we needed to partner with other organizations like AI Singapore which could help us with some of the resources which we needed to fund some of our events as well as help us to reach out to the larger student network and give them resources to learn more about AI.  </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2024/05/Screenshot-2024-05-19-at-7.15.02-PM.png" class="kg-image" alt="NYPAI: Our Final Commit (2022 - 2023)" loading="lazy" width="1844" height="1212" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/Screenshot-2024-05-19-at-7.15.02-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/Screenshot-2024-05-19-at-7.15.02-PM.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2024/05/Screenshot-2024-05-19-at-7.15.02-PM.png 1600w, https://blog.nyp.ai/content/images/2024/05/Screenshot-2024-05-19-at-7.15.02-PM.png 1844w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">PentaHack organizing committee</span></figcaption></figure><h3 id="aws-deeprace-dash-hackathon-2023">AWS Deeprace Dash Hackathon 2023</h3><p>This was the second event that we did, in the middle of July. AWS was actively promoting students to learn AI skills and they were also hosting this competition called the AWS nationwide deep racer hackathon. To help give students some hands-on experience for the hackathon they reached out to some AI interest groups in Singapore to get us to help out for the event. The event saw over 400 participants and was open to all students from secondary school, junior colleges and polytechnic and was held at the AI Singapore office. We also had the opportunity to showcase some of our club&apos;s projects, which helped increase awareness and interest in our club.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2024/05/Screenshot-2024-05-19-at-8.01.28-PM.png" class="kg-image" alt="NYPAI: Our Final Commit (2022 - 2023)" loading="lazy" width="1894" height="1206" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/Screenshot-2024-05-19-at-8.01.28-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/Screenshot-2024-05-19-at-8.01.28-PM.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2024/05/Screenshot-2024-05-19-at-8.01.28-PM.png 1600w, https://blog.nyp.ai/content/images/2024/05/Screenshot-2024-05-19-at-8.01.28-PM.png 1894w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">Prakhar, Karthik, Wen Bing, Jun Ming, Jay</span></figcaption></figure><h3 id="panel-discussion-with-ai-experts">Panel Discussion with AI experts</h3><p>Just a week after the Deep Racer hackathon, we hosted our AI panel discussion, our largest event to date, with over 500 participants. Thanks to AI Singapore and Ms. Teo Miow Ting, who helped connect us with industry professionals for the panel. The discussion covered topics like generative AI, opportunities for students in the field, and how to start learning about AI. We received excellent feedback from participants, indicating the event&apos;s success and impact.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2024/05/Screenshot-2024-05-19-at-8.35.44-PM.png" class="kg-image" alt="NYPAI: Our Final Commit (2022 - 2023)" loading="lazy" width="1804" height="1000" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/Screenshot-2024-05-19-at-8.35.44-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/Screenshot-2024-05-19-at-8.35.44-PM.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2024/05/Screenshot-2024-05-19-at-8.35.44-PM.png 1600w, https://blog.nyp.ai/content/images/2024/05/Screenshot-2024-05-19-at-8.35.44-PM.png 1804w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">NYP AI Panel Discussion with industry experts</span></figcaption></figure><h2 id="lessons-learnt-%F0%9F%A4%94">Lessons Learnt &#x1F914;</h2><p>While we hosted many successful events, we also did have a few which were less successful. We found that our highly technical workshops attracted fewer participants compared to our beginner-friendly ones, despite covering cooler topics. As a result, we decided to focus on larger-scale events like those mentioned earlier which catered to all skill levels from novice to pro. </p><p>We also learned the importance of effective publicity. To improve this, we started putting out short Instagram posts explaining AI concepts in a simple manner, created a Linktree to share all our resources better (link here: <a href="https://linktr.ee/NYPAI?ref=blog.nyp.ai">https://linktr.ee/NYPAI</a>), and even came out with our own T-shirt. Recognizing the need for a stronger brand identity, we&#x2019;ve put more effort into marketing our workshops and events, ensuring we reach a broader audience and make a bigger impact.</p><h2 id="epilogue">Epilogue</h2><p>All this stuff wouldn&apos;t have been possible without the NYP AI crew (Wei Jun, Jay, Jun Ming and Jing Khai) who worked tirelessly to make this happen. We are proud of what have built so far and how we were able to grow this community for AI enthusiasts to share new ideas and collaborate. </p><p>All the best to the next team, we hope you continue to grow this community to be even bigger than it currently is!</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2024/05/Screenshot-2024-05-19-at-8.21.27-PM.png" class="kg-image" alt="NYPAI: Our Final Commit (2022 - 2023)" loading="lazy" width="1726" height="1138" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/Screenshot-2024-05-19-at-8.21.27-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/Screenshot-2024-05-19-at-8.21.27-PM.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2024/05/Screenshot-2024-05-19-at-8.21.27-PM.png 1600w, https://blog.nyp.ai/content/images/2024/05/Screenshot-2024-05-19-at-8.21.27-PM.png 1726w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">The Top Gs running the club &#x1F5FF; (left to right: Jun Ming, Wei Jun, Karthik, Jay, Jing Khai)</span></figcaption></figure><p>~ Sincerely<br>The NYP AI Team (23-24)</p><p></p><p><a href="https://go.nyp.ai/join?ref=blog.nyp.ai" rel="noreferrer">Join Us</a> | <a href="https://nyp.ai/?ref=blog.nyp.ai" rel="noreferrer">Website</a> | <a href="https://go.nyp.ai/ig?ref=blog.nyp.ai" rel="noreferrer">Instagram</a> | <a href="https://go.nyp.ai/discord?ref=blog.nyp.ai" rel="noreferrer">Discord</a> | <a href="https://go.nyp.ai/tele?ref=blog.nyp.ai" rel="noreferrer">Telegram</a></p>]]></content:encoded></item><item><title><![CDATA[An Enchanting Escapade ✨]]></title><description><![CDATA[Presenting An Enchanted Escapade by NYP AI, an unprecedented event jam-packed with games, food and fun with an AI flair.]]></description><link>https://blog.nyp.ai/an-enchanting-escapade/</link><guid isPermaLink="false">6640cce7ddf9b74da966b97b</guid><category><![CDATA[Events]]></category><category><![CDATA[Past]]></category><dc:creator><![CDATA[Prakhar Trivedi]]></dc:creator><pubDate>Sun, 12 May 2024 16:06:38 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2024/05/WhatsApp-Image-2024-05-12-at-22.48.15.jpeg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.nyp.ai/content/images/2024/05/WhatsApp-Image-2024-05-12-at-22.48.15.jpeg" alt="An Enchanting Escapade &#x2728;"><p>We forayed into unknown territory from the get go this year.<br><br>Late April, we hosted our first ever event engaging our club members in-person this year in the large space at P1 Convention Centre in school. Titled <strong>An Enchanting Escapade by NYP AI</strong>, the aim was to educate students about AI concepts through games while promoting our club&apos;s awareness.</p><h1 id="time-%E2%80%93-the-biggest-enemy">Time &#x2013; the biggest enemy.</h1><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2024/05/Enchanted-Escapade-Slides.png" class="kg-image" alt="An Enchanting Escapade &#x2728;" loading="lazy" width="960" height="540" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/Enchanted-Escapade-Slides.png 600w, https://blog.nyp.ai/content/images/2024/05/Enchanted-Escapade-Slides.png 960w" sizes="(min-width: 720px) 720px"></figure><p>The event comes after the launch of our new Community Engagement (CE) Department within our EXCO, spearheaded by Shawn Goh (Year 2 in Diploma in Applied AI and Analytics). The lack of precedence, since <strong>an event of such a scale has never been done before by any Student Interest Group</strong>, made organising the event an especially challenging ordeal for the department and Shawn.</p><p>Within the timespan of 2 weeks, the team went from ideation to submitting the event proposal and co-ordinating with lecturers. The event was slated to have a maximum registration of 100 people, presenting another challenge that is the lack of manpower to manage said participants, since we are just an SIG.</p><p>&quot;Hey, do you wanna help out for this one thing?&quot;</p><p>Those kind friends of the NYP AI committee who answered yes to the above joined a makeshift event committee to help us out and mainly be Group Leaders (for each group of participants) at the event. Thanks to an intricate lineup of games, the committee was <strong>all hands on-deck to source and prepare logistics</strong> in order to ensure that the event ran smooth.</p><p>Most event organisers count their lucky stars to have half the actual RSVP during the event as registered on paper. We thought we would be most event organisers, turns out we weren&apos;t...</p><h1 id="d-day">D-Day</h1><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2024/05/IMG_0041.JPG" class="kg-image" alt="An Enchanting Escapade &#x2728;" loading="lazy" width="2000" height="1333" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/IMG_0041.JPG 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/IMG_0041.JPG 1000w, https://blog.nyp.ai/content/images/size/w1600/2024/05/IMG_0041.JPG 1600w, https://blog.nyp.ai/content/images/2024/05/IMG_0041.JPG 2000w" sizes="(min-width: 720px) 720px"></figure><p>The committee rolled in an hour early before event start on a rather warm afternoon. Luckily, we had the respite of the well air-conditioned P1 Convention Centre.</p><p>After fixing up slides, checking AV, and spreading out logistics, Shawn ran a dry run for the group leaders to ensure everyone was on the same page. With moments to go before doors opened, I (Prakhar), being the emcee, picked up the mic, blasted upbeat party tunes on the reverberating speakers of the hall and welcomed participants with a smile.</p><p>Eyes glued to the group layout on screen, an avalanche of students streamed in towards their respective group leaders and took a seat. To our pleasant surprise, <strong>90 people were in attendance, ready for an action-packed afternoon.</strong></p><h2 id="icebreakers">Icebreakers</h2><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21.png" class="kg-image" alt="An Enchanting Escapade &#x2728;" loading="lazy" width="1080" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/NYP-AI-EE-21.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/NYP-AI-EE-21.png 1000w, https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21.png 1080w" sizes="(min-width: 720px) 720px"></figure><p>First up on the menu: some quintessential icebreakers. Groups were left on their own to play a few icebreakers like Name Splat, Enchanted Smackdown and Broken Telephone. Thanks to the exuberant energy of our Group Leaders, the ice melted like it was at Sahara and <strong>we were pleased to see lots of laughter and joy</strong>.</p><p>Some groups even combined to play icebreakers together and enjoyed even more ridiculous moments (one team went from flying to Zumba??).</p><p>Delectable snacks like chocolate eclairs were served afterwards for everyone. But, the best part is yet to be, of course.</p><h2 id="ai-fundamentals">AI Fundamentals</h2><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--1-.png" class="kg-image" alt="An Enchanting Escapade &#x2728;" loading="lazy" width="1080" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/NYP-AI-EE-21--1-.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/NYP-AI-EE-21--1-.png 1000w, https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--1-.png 1080w" sizes="(min-width: 720px) 720px"></figure><p>I introduced some fundamentals of AI to students. Although very high level, these <strong>elementary concepts would help de-mystify the AI buzz and give students the much needed tangible understanding of what AI actually is</strong>. And that&apos;s math.</p><p>Beginning with the age-old two types of Machine Learning &#x2013; Supervised and Unsupervised Learning &#x2013; I explained the purpose of different kinds of algorithms like decision trees and clustering before giving examples of where they can be used in real life as well. Moving on to the topic everyone&apos;s really excited about, I laid out the 101 on Generative AI and the popular tools available on the market people can use.</p><p>I encouraged participants to take special note of the brief content as they may need to apply it sooner than they think.</p><h2 id="mass-games">Mass Games</h2><h3 id="ai-sorcerer-showdown">AI Sorcerer Showdown</h3><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--2-.png" class="kg-image" alt="An Enchanting Escapade &#x2728;" loading="lazy" width="1080" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/NYP-AI-EE-21--2-.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/NYP-AI-EE-21--2-.png 1000w, https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--2-.png 1080w" sizes="(min-width: 720px) 720px"></figure><p>We wanted to make participants engage with each other instead of staying in their silo group. So, <strong>we introduced AI Sorcerer Showdown</strong>.</p><p>In this mass game, participants were given sashes (strips of garbage bag &#x2013; we were on budget) that they tug on to their pocket. When the 10-minute timer starts, they can start running around the hall to snatch the sashes of other players to secure a &quot;kill&quot; and thus a point for their group.</p><p>Upon being killed, players go to their Group Leader who will quiz them on something that was covered earlier in the AI Fundamentals section. If they answer correctly, they get a second life to get back in the game and try again! The group with the most number of sashes at the end wins!</p><p>After a briefing and some strategy time, we started the clock and watched some incredibly crafty footwork happen in the hall. Some teams stayed close in solidarity while others went out to get kills. Killed players that payed attention got back in the game and some stayed till the end as well. Once again, <strong>the room lit up with joy and we were pleased to see everyone having fun</strong>!</p><h3 id="doodle-dash">Doodle Dash</h3><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--3-.png" class="kg-image" alt="An Enchanting Escapade &#x2728;" loading="lazy" width="1080" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/NYP-AI-EE-21--3-.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/NYP-AI-EE-21--3-.png 1000w, https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--3-.png 1080w" sizes="(min-width: 720px) 720px"></figure><p>Then, everyone settled down and we moved on to the next mass game: <strong>Doodle Dash.</strong></p><p>In their groups, one phone was passed around where each person had to as quickly and accurately as possible draw something they are told to draw so that an AI could recognise it. Sound familiar? That&apos;s right, the website is <a href="https://quickdraw.withgoogle.com/?ref=blog.nyp.ai">https://quickdraw.withgoogle.com</a><br><br>Group Leaders counted the number of drawings that got recognised within 5 minutes, adding to their group&apos;s points secured in the AI Sorcerer Showdown earlier.</p><h1 id="conclusion">Conclusion</h1><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--4-.png" class="kg-image" alt="An Enchanting Escapade &#x2728;" loading="lazy" width="1080" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/NYP-AI-EE-21--4-.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/NYP-AI-EE-21--4-.png 1000w, https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--4-.png 1080w" sizes="(min-width: 720px) 720px"></figure><p>After collating the group points, we announced Cheng Hock&apos;s (one of the group leaders) team as the winners! We took a quick photo with the team and their prize, a box of shiny Ferrero Rocher. After a series of QR codes on screen promoting NYP AI, we invited participants to give us feedback on the event.</p><h2 id="new-leadership">New Leadership</h2><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--5-.png" class="kg-image" alt="An Enchanting Escapade &#x2728;" loading="lazy" width="1080" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2024/05/NYP-AI-EE-21--5-.png 600w, https://blog.nyp.ai/content/images/size/w1000/2024/05/NYP-AI-EE-21--5-.png 1000w, https://blog.nyp.ai/content/images/2024/05/NYP-AI-EE-21--5-.png 1080w" sizes="(min-width: 720px) 720px"></figure><p>Allow me to introduce our new EXCO and structure of AY24/25 with this opportune blog post:</p><ul><li><strong>President: Wong Wen Bing (DAAA)</strong></li><li><strong>Vice-President: Prakhar Trivedi (DIT)</strong></li><li><strong>Club Secretary: Cheng Hock (DAAA)</strong></li><li><strong>Head of Events Department: Sarah Zoe Sung (DAAA)</strong></li><li><strong>Head of Community Engagement Department: Shawn Goh (DAAA)</strong></li><li><strong>Head of Publicity Department: Faith Yeo (DAAA)</strong></li></ul><p>A huge thank you to the previous EXCO for your contributions to the club and for trusting us to pave the way for more exciting things we can do. Thank you to all the volunteers who helped us out in organising the event; your contributions are much appreciated.</p><p><strong>The event was a huge success by any measure: we welcomed a lot of new members and promoted the club among freshmen. NYP AI is glad to have pioneered this first-of-a-kind event among SIGs and we are excited to see what other SIGs might organise with this event type. We hope the event encourages SIGs to step out of the traditional bounds of SIG activities like workshops and more to benefit the student body even more.</strong></p><p>Get ready for more from us as well. There&apos;s a lot of exciting things we have lined up  and we can&apos;t wait to see you there.<br><br>Photo credits: <a href="https://www.instagram.com/nyp_photography/?hl=en&amp;ref=blog.nyp.ai" rel="noreferrer">NYP Photography Club</a> and NYP AI Publicity Department</p><p><a href="https://go.nyp.ai/join?ref=blog.nyp.ai" rel="noreferrer">Join Us</a> | <a href="https://nyp.ai/?ref=blog.nyp.ai" rel="noreferrer">Website</a> | <a href="https://go.nyp.ai/ig?ref=blog.nyp.ai" rel="noreferrer">Instagram</a> | <a href="https://go.nyp.ai/discord?ref=blog.nyp.ai" rel="noreferrer">Discord</a> | <a href="https://go.nyp.ai/tele?ref=blog.nyp.ai" rel="noreferrer">Telegram</a></p>]]></content:encoded></item><item><title><![CDATA[Tech Week 2023]]></title><description><![CDATA[Tech week is back again and we have come up with a better and more interesting topic that has been taking the world by storm - “Generative AI”. The workshop was also held physically at NYP after the covid-19 break.]]></description><link>https://blog.nyp.ai/tech-week-2023/</link><guid isPermaLink="false">65275f942ead7b0398e48290</guid><category><![CDATA[Events]]></category><dc:creator><![CDATA[Karthik Gangula]]></dc:creator><pubDate>Thu, 12 Oct 2023 10:12:13 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.17.33-PM.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.17.33-PM.png" alt="Tech Week 2023"><p>Tech week is back this year and we have come up with a better and more interesting topic that has been taking the world by storm - &#x201C;Generative AI&#x201D;. The workshop was help on day 2 of tech week and physically at NYP after the covid-19 break.</p><p>The aim of the event was to educate participants on the basics of generative AI as well as introduce them to the many open source models that they can use in their projects and how they can quickly finetune them to answer questions based on their desired dataset.</p><p>The event began with us giving a very quick introduction to AI, machine learning and deep learning and where generative AI fits into all this.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-11.01.00-AM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1390" height="762" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-11.01.00-AM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-11.01.00-AM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-11.01.00-AM.png 1390w" sizes="(min-width: 720px) 720px"></figure><p>After this we gave a brief intro to generative AI, which is the branch of AI that can create generate new content from the data that it is being trained on. The most popular example of this is chatGPT which has been trained on a large corpus of text and is very good at text generation. Similarly we have models that can generate images (<a href="https://huggingface.co/spaces/stabilityai/stable-diffusion?ref=blog.nyp.ai">https://huggingface.co/spaces/stabilityai/stable-diffusion</a>), music (<a href="https://huggingface.co/spaces/facebook/MusicGen?ref=blog.nyp.ai">https://huggingface.co/spaces/facebook/MusicGen</a>) and now even video (<a href="https://huggingface.co/PAIR/text2video-zero-controlnet-canny-arcane?ref=blog.nyp.ai">https://huggingface.co/PAIR/text2video-zero-controlnet-canny-arcane</a>). Feel free to play around with these if you like, they are all open source and freely available to the public.</p><p>we also spoke about 3 different generative models which were Generative Adverserial Networks (GANs), Denoising Diffusion Models, and Variational Autoencoders.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-5.59.01-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="840" height="688" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-5.59.01-PM.png 600w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-5.59.01-PM.png 840w" sizes="(min-width: 720px) 720px"></figure><p>Some of the key points that were highlighted can be seen in the table below:</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.09.03-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1532" height="982" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-10.09.03-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-10.09.03-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.09.03-PM.png 1532w" sizes="(min-width: 720px) 720px"></figure><p></p><h2 id="text-generation">TEXT GENERATION</h2><p>After talking about how generative AI models work, we moved onto talking about text generation which was a part of Natural Language Processing (NLP). AI uses NLP to make sense of textual user inputs by analysing the grammatical structure and of sentences and individual meaning of words, then uses algorithms to extract meaning and deliver outputs.</p><p>Coming back to text gen, we spoke about how the next word to be predicted in the sentence will have a high probability of occuring after the word by analysing the patterns and relationships within the training data.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-5.59.15-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1388" height="676" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-5.59.15-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-5.59.15-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-5.59.15-PM.png 1388w" sizes="(min-width: 720px) 720px"></figure><p>However, this approach doesnt work especially if we want to preserve the context of the sentence. The problem was that models couldnt remember long sequences of text and this was due to something called fixed length context vectors. This is where we introduced the transformers concept.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-5.59.30-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1342" height="684" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-5.59.30-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-5.59.30-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-5.59.30-PM.png 1342w" sizes="(min-width: 720px) 720px"></figure><p>The transformer has something known as the attention mechanism which allows the model to focus on specific parts of the input and give more weight to them when producing an output. Multihead attention was where there would be multiple focus points at once which captures different aspects of information. Finally positional encoding would ensure that the model can recognize the word order.</p><p>The transformers mode was introduced in a paper titles &#x201C;Attention is all you need&#x201D;2017 and has come a long way since then with many models such as the GPT and BERT models being transformer neural networks.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.00.14-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1148" height="656" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.00.14-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.00.14-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.00.14-PM.png 1148w" sizes="(min-width: 720px) 720px"></figure><h1 id="improving-text-generation-models">Improving Text Generation Models</h1><p>To improve text generation models there were 3 ways we could have done it.</p><ul><li>The easiest would have been prompt engineering, finding a suitable way to prompt the model so that the desired output can be achieved check out prompt engineering guide (<a href="https://www.promptingguide.ai/techniques/zeroshot?ref=blog.nyp.ai">https://www.promptingguide.ai/techniques/zeroshot</a>) which is a very guide resource talking about concepts like zero shot, few shot and chain of thought prompting.</li><li>The second would be Fine tuning which is the process of adapting pre-trained models to perform specific tasks or operate within particular domains. Techniques like quantized low rank adapters (QLoRA) and Performance Efficient Fine Tuning (PEFT) can be used. However this is a very time consuming and computationally expensive process</li><li>The third is retrieval augmented generation which uses both retrieval-based and generative models to produce more informed and coherent responses. It can be explained in 4 simple steps:</li></ul><ol><li><strong>Query Formulation:</strong></li></ol><ul><li>The process begins with the formulation of a query based on the input received. This query is designed to retrieve relevant information from a given dataset or knowledge base.</li></ul><p><strong>2. Information Retrieval</strong>:</p><ul><li>The formulated query is then used to fetch relevant documents or data snippets from the external dataset or knowledge base. This is typically done using a pre-trained retriever model which ranks the documents based on relevance to the query.</li></ul><p><strong>3. Contextual Merging</strong>:</p><ul><li>The retrieved information is combined with the original input to form an augmented context. This augmented context now contains both the original input and the additional information retrieved from the external source.</li></ul><p><strong>4. Response Generation</strong>:</p><ul><li>A generative model, such as a Transformer-based model, is then employed to generate a response based on the augmented context. This response is expected to be more informative and accurate as it&apos;s based on additional external information.</li></ul><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.10-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1032" height="544" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.01.10-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.01.10-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.10-PM.png 1032w" sizes="(min-width: 720px) 720px"></figure><h2 id="rag-practical">RAG practical</h2><p>This practical was designed to shows users how to use retrieval augmented generation on their own dataset. For the practical we used the arxiv research papers  dataset. The first step was to convert the text to embeddings. To do that we needed to craete an embedding pipeline. We used sentence transformers model to do this for us.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.21-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1376" height="716" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.01.21-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.01.21-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.21-PM.png 1376w" sizes="(min-width: 720px) 720px"></figure><p>And then we had to use this pipeline. We can see that the embeddings have been produced for the 2 sentences in the docs list.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.33-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1384" height="774" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.01.33-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.01.33-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.33-PM.png 1384w" sizes="(min-width: 720px) 720px"></figure><p>To store the embeddings we had to use a vector database. For this we made use of pinecone which had a very generous free tier (<a href="https://www.pinecone.io/?ref=blog.nyp.ai">https://www.pinecone.io/</a>).</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.43-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1388" height="782" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.01.43-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.01.43-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.43-PM.png 1388w" sizes="(min-width: 720px) 720px"></figure><p>The vector index, a data structure used to organize and search vector data efficiently, was created.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.52-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1402" height="638" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.01.52-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.01.52-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.01.52-PM.png 1402w" sizes="(min-width: 720px) 720px"></figure><p>Our dataset was of ArXiv research papers. Below is the code to load the datasets.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.02.04-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1392" height="736" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.02.04-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.02.04-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.02.04-PM.png 1392w" sizes="(min-width: 720px) 720px"></figure><p>This data was then processed to have 3 key components: Ids, Embeds, and metadata. This was then inserted into the vector database.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.02.32-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1394" height="696" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.02.32-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.02.32-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.02.32-PM.png 1394w" sizes="(min-width: 720px) 720px"></figure><p>We then made use of langchain for the retrieval QA generation.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.03.27-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1386" height="706" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.03.27-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.03.27-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.03.27-PM.png 1386w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.03.38-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1394" height="598" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.03.38-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.03.38-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.03.38-PM.png 1394w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.03.52-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1380" height="758" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.03.52-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-6.03.52-PM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.03.52-PM.png 1380w" sizes="(min-width: 720px) 720px"></figure><p>After all that code it was finally time to run it to see if it worked. Below is the comparison of the same response with and without RAG.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.59.28-AM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1396" height="704" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-10.59.28-AM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-10.59.28-AM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.59.28-AM.png 1396w" sizes="(min-width: 720px) 720px"></figure><h2 id="image-generation-and-captioning-practical">Image Generation and Captioning Practical</h2><p>After text generation we moved on to our image generation practical. The goal was to build a simple interface using gradio where users could get the caption of the images by uploading them or type in a prompt to generate images.</p><p>Text to image model: <a href="https://huggingface.co/runwayml/stable-diffusion-v1-5?ref=blog.nyp.ai">https://huggingface.co/runwayml/stable-diffusion-v1-5</a></p><p>Image to text model: <a href="https://huggingface.co/Salesforce/blip-image-captioning-base?ref=blog.nyp.ai">https://huggingface.co/Salesforce/blip-image-captioning-base</a></p><p>We made use of the model endpoints and made a simple interface that looks the one below:</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.58.30-AM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1320" height="738" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-10.58.30-AM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-10.58.30-AM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.58.30-AM.png 1320w" sizes="(min-width: 720px) 720px"></figure><p>Gradio interface code for text captioning: </p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.58.47-AM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1402" height="694" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-10.58.47-AM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-10.58.47-AM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.58.47-AM.png 1402w" sizes="(min-width: 720px) 720px"></figure><p>Gradio interface code for image generation</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.04.33-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="700" height="338" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.04.33-PM.png 600w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.04.33-PM.png 700w"></figure><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.04.19-PM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="716" height="1152" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-6.04.19-PM.png 600w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-6.04.19-PM.png 716w"></figure><p>As the event wrapped up, many participants expressed how engaging and informative they found it. Even with a smaller crowd due to the in-person format, the event allowed for easy clarification of doubts and valuable networking among attendees. The hands-on practical sessions were a highlight, as everyone could follow along, making the learning experience both enriching and interactive.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.57.26-AM.png" class="kg-image" alt="Tech Week 2023" loading="lazy" width="1182" height="724" srcset="https://blog.nyp.ai/content/images/size/w600/2023/10/Screenshot-2023-10-12-at-10.57.26-AM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/10/Screenshot-2023-10-12-at-10.57.26-AM.png 1000w, https://blog.nyp.ai/content/images/2023/10/Screenshot-2023-10-12-at-10.57.26-AM.png 1182w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">NYP AI Team &#x1F680;</span></figcaption></figure><p>Links: </p><p>Workshop Materials: <a href="https://drive.google.com/drive/folders/1MHdWMrzNQ_au4drMEjYbH1Ukgcs-prsr?usp=drive_link&amp;ref=blog.nyp.ai">https://drive.google.com/drive/folders/1MHdWMrzNQ_au4drMEjYbH1Ukgcs-prsr?usp=drive_link</a></p><p>NYPAI Instagram: <a href="https://www.instagram.com/nyp_ai/?ref=blog.nyp.ai">https://www.instagram.com/nyp_ai/</a></p><p>NYPAI Linkedin: <a href="https://www.linkedin.com/company/nyp-ai/mycompany/?ref=blog.nyp.ai">https://www.linkedin.com/company/nyp-ai/mycompany/</a></p><p>NYPAI Membership Form: <a href="https://forms.gle/H3C4afosUJVvBgKC6?ref=blog.nyp.ai">https://forms.gle/H3C4afosUJVvBgKC6</a></p>]]></content:encoded></item><item><title><![CDATA[Fun with AI 2023 🎉]]></title><description><![CDATA[<p>In July, NYP AI made waves with our &quot;Fun with AI 2023&quot; workshop. What set it apart? Not only was it one of our largest gathering with 80+ participants, but it was also tailored for beginners. Even those without a coding background found themselves diving deep into the</p>]]></description><link>https://blog.nyp.ai/fun-with-ai-2023/</link><guid isPermaLink="false">64dde8872ead7b0398e481ac</guid><category><![CDATA[Events]]></category><dc:creator><![CDATA[Karthik Gangula]]></dc:creator><pubDate>Thu, 22 Jun 2023 14:59:00 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.56.38-PM.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.56.38-PM.png" alt="Fun with AI 2023 &#x1F389;"><p>In July, NYP AI made waves with our &quot;Fun with AI 2023&quot; workshop. What set it apart? Not only was it one of our largest gathering with 80+ participants, but it was also tailored for beginners. Even those without a coding background found themselves diving deep into the world of AI, discovering the technology that&apos;s reshaping our world.</p><h3 id="games-ai-ethics-and-more">Games, AI Ethics, and More!</h3><p>Before diving into the hands-on session, the workshop set the mood right with some intriguing games. One such game required participants to distinguish between AI-generated and real images. It was not just fun but served a dual purpose to show the astonishing capabilities of AI in mimicking reality and how it should be used responsibly.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-19-at-11.43.05-PM.png" class="kg-image" alt="Fun with AI 2023 &#x1F389;" loading="lazy" width="2000" height="1116" srcset="https://blog.nyp.ai/content/images/size/w600/2023/08/Screenshot-2023-08-19-at-11.43.05-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/08/Screenshot-2023-08-19-at-11.43.05-PM.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2023/08/Screenshot-2023-08-19-at-11.43.05-PM.png 1600w, https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-19-at-11.43.05-PM.png 2096w" sizes="(min-width: 720px) 720px"><figcaption>can you guess if this is an AI generated image or not ?</figcaption></figure><p>This game sparked insightful discussions about AI&#x2019;s potential, its limitations, and the responsibilities of those harnessing its power.</p><h3 id="concepts-covered">Concepts Covered</h3><p>Before we moved on to the hands on portion of the workshop, we covered some of the theory on some basic AI and computer vision concepts and how everything is related together.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.22.58-PM.png" class="kg-image" alt="Fun with AI 2023 &#x1F389;" loading="lazy" width="2000" height="1124" srcset="https://blog.nyp.ai/content/images/size/w600/2023/08/Screenshot-2023-08-21-at-10.22.58-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/08/Screenshot-2023-08-21-at-10.22.58-PM.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2023/08/Screenshot-2023-08-21-at-10.22.58-PM.png 1600w, https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.22.58-PM.png 2136w" sizes="(min-width: 720px) 720px"></figure><p>Since we were more focused on the computer vision part, we spoke more about some of the tasks that can be acomplished such as Image Classification, Object Detection, Optical Character Recognition (OCR), etc. </p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.47.27-PM.png" class="kg-image" alt="Fun with AI 2023 &#x1F389;" loading="lazy" width="2000" height="1107" srcset="https://blog.nyp.ai/content/images/size/w600/2023/08/Screenshot-2023-08-21-at-10.47.27-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/08/Screenshot-2023-08-21-at-10.47.27-PM.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2023/08/Screenshot-2023-08-21-at-10.47.27-PM.png 1600w, https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.47.27-PM.png 2046w" sizes="(min-width: 720px) 720px"></figure><p>In any machine learning project, we start with data collection. This data can be messy, so we clean and organize it through preprocessing. For computer vision, preprocessing means adjusting image sizes, fixing brightness, and sometimes flipping or rotating images to get more variety.</p><p>Once the data is ready, we train our model. We use the cleaned-up images to teach the model how to recognise patterns and objects. The quality of the data we collect at the start plays a big role in how well our model will work.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.48.32-PM.png" class="kg-image" alt="Fun with AI 2023 &#x1F389;" loading="lazy" width="2000" height="1100" srcset="https://blog.nyp.ai/content/images/size/w600/2023/08/Screenshot-2023-08-21-at-10.48.32-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/08/Screenshot-2023-08-21-at-10.48.32-PM.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2023/08/Screenshot-2023-08-21-at-10.48.32-PM.png 1600w, https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.48.32-PM.png 2098w" sizes="(min-width: 720px) 720px"></figure><p>While our discussions often revolve around the intricacies of building models, this workshop placed a heightened emphasis on evaluation. After all, it&apos;s the quality of evaluation that truly determines the merit of a model, rather than the complexity of the modeling techniques used. The primary focus was on accuracy, but we also introduced participants to metrics like the ROC curve, true positives, and false positives. However, we kept our exploration of these metrics surface-level to avoid overwhelming the participants.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.38.50-PM.png" class="kg-image" alt="Fun with AI 2023 &#x1F389;" loading="lazy" width="2000" height="1000" srcset="https://blog.nyp.ai/content/images/size/w600/2023/08/Screenshot-2023-08-21-at-10.38.50-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/08/Screenshot-2023-08-21-at-10.38.50-PM.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2023/08/Screenshot-2023-08-21-at-10.38.50-PM.png 1600w, https://blog.nyp.ai/content/images/2023/08/Screenshot-2023-08-21-at-10.38.50-PM.png 2048w" sizes="(min-width: 720px) 720px"></figure><p>Following our discussion, we challenged participants to apply their newfound knowledge with a hands-on session using Teachable Machine.</p><h3 id="no-code-ai-with-googles-teachable-machine">No-Code AI with Google&apos;s Teachable Machine</h3><p>Teachable machine is a tool that offers a no-code solution for machine learning, making AI accessible and understandable to all, regardless of their programming experience. For many participants, it was their first brush with AI, and the simplicity of Teachable Machine ensured they weren&#x2019;t intimidated. With a user-friendly interface, participants easily created models, teaching their computers to recognise patterns, objects, and more.</p><figure class="kg-card kg-image-card"><img src="https://lh6.googleusercontent.com/npO0iZklNzpQXo8b1JC2CGYNECckMernIvFBwXXWiOps0fUVLD_-BXspdn8B1t42aeUUI_4ySbScq_-5Nu4V4KQPTV6kCIN_WI7GQLAbOG_sFAaTD2fYLfMnc9W7AYlzQH-kFCdfV1KlVgYGaNB0yVd4ZQ=nw" class="kg-image" alt="Fun with AI 2023 &#x1F389;" loading="lazy"></figure><p>While individual experimentation with the Teachable Machine was insightful, the event took a collaborative turn by introducing a group work component. This allowed participants to brainstorm, share ideas, and problem-solve collectively. It was not just about learning the tool, but about collaborative innovation, simulating real-world scenarios where teamwork often leads to. Some of the projects that the participants have worked on were on emotions identifier, among us classifier, dangerous tools detector, and more. After participants finished they then presented their models which allowed others to provide feedback and gain a deeper understanding of the topic. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2023/08/image.png" class="kg-image" alt="Fun with AI 2023 &#x1F389;" loading="lazy" width="2000" height="1300" srcset="https://blog.nyp.ai/content/images/size/w600/2023/08/image.png 600w, https://blog.nyp.ai/content/images/size/w1000/2023/08/image.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2023/08/image.png 1600w, https://blog.nyp.ai/content/images/size/w2400/2023/08/image.png 2400w" sizes="(min-width: 720px) 720px"><figcaption>Team presenting their dangerous tools detector model to the other participants</figcaption></figure><p>More of the models created by participants can be found at this link: <a href="https://padlet.com/prakhar0706/nyp-fun-with-ai-workshop-submissions-2b6xk1i37i53nl1e?ref=blog.nyp.ai" rel="noreferrer noopener">https://padlet.com/prakhar0706/nyp-fun-with-ai-workshop-submissions-2b6xk1i37i53nl1e</a><br></p><p>All in all, the feedback that we received from this event was very positive largely due to the hands on portion of the workshop where participants were able to apply their own knowledge on use cases they are interested in. This shows that we should also consider including this for a more engaging event in the future. </p>]]></content:encoded></item><item><title><![CDATA[NYP AI: Tech Week 2022]]></title><description><![CDATA[<h2 id="tech-week-2022">Tech Week 2022</h2><p>During the September break, NYP AI hosted Tech Week in collaboration with the 5 other interest groups at NYP. The goal of this event was to teach Year 1 students the basics of Artificial Intelligence and how it can help people in their everyday lives</p><p>The outcome</p>]]></description><link>https://blog.nyp.ai/nyp-tech-week-2022/</link><guid isPermaLink="false">636f571e072b6204bb4800df</guid><category><![CDATA[Events]]></category><dc:creator><![CDATA[Karthik Gangula]]></dc:creator><pubDate>Tue, 22 Nov 2022 13:56:17 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2023/01/NYP-Ai-tech-week.jpg" medium="image"/><content:encoded><![CDATA[<h2 id="tech-week-2022">Tech Week 2022</h2><img src="https://blog.nyp.ai/content/images/2023/01/NYP-Ai-tech-week.jpg" alt="NYP AI: Tech Week 2022"><p>During the September break, NYP AI hosted Tech Week in collaboration with the 5 other interest groups at NYP. The goal of this event was to teach Year 1 students the basics of Artificial Intelligence and how it can help people in their everyday lives</p><p>The outcome of this event was to give the students clarity on what AI, Machine Learning, and Deep Learning are, and then teach them how to create their own text summarizer using the streamlit library in Python. This web application can perform 2 simple functions</p><ul><li>it takes a link from a website or text that the user types in</li><li>create a text summary using the huggingface transformers library</li></ul><p>Inputs:</p><figure class="kg-card kg-image-card kg-width-wide kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.21.31-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="730" height="378" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.21.31-PM.png 600w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.21.31-PM.png 730w"><figcaption>testing with wikipedia link</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.22.20-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="752" height="434" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.22.20-PM.png 600w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.22.20-PM.png 752w" sizes="(min-width: 720px) 720px"><figcaption>testing with text input</figcaption></figure><p>Output:</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.22.36-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="864" height="520" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.22.36-PM.png 600w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.22.36-PM.png 864w" sizes="(min-width: 720px) 720px"></figure><h2 id="the-introduction">The Introduction</h2><p>We first talked about artificial intelligence, machine learning, and deep learning, followed by the differences between them. For example, one of the differences is that in machine learning you have to do something called feature extraction, which is the process of labelling features. For example, if you want to identify a cat, you need to know what kind of ears it has, what kind of tail it has, etc. With Deep Learning, you do not have to label these features; instead, the Deep Learning model will identify the features for us. After discussing this, we talked about what neural networks are and the 3 different types of neural networks. We then introduced the participants to NLP, which they were able to understand by creating 2 types of text summarizers (abstractive and extractive). Finally, we used our text summarization in a streamlit webapp.</p><h2 id="natural-language-processing-nlp-project">Natural Language Processing (NLP) project</h2><p>We then talked about NLP and used a text summarization project to show the participants its possible applications. Before we started building the project, we introduced 2 types of text summaries</p><ul><li>Extractive text summarization: Finds the most important sentences in the text and creates a summary by combining these sentences together</li><li>Abstract text summary: &#xA0;Creates a text summary in his or her own words by looking at the main ideas in the text</li></ul><p>The first step of our project was to collect the text data that we wanted to summarize. We wanted the app user to have the freedom to summarize content from whatever website they wanted. So we used the requests and beautifulsoup libraries to collect the text data</p><p>The requests library helped us send a request to the website and retrieve the HTML page of the website, while the beautifulsoup library allowed us to retrieve the text from the HTML page essentially acting as a parser.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.23.45-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="964" height="224" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.23.45-PM.png 600w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.23.45-PM.png 964w" sizes="(min-width: 720px) 720px"><figcaption>After collecting all the paragraph tags, we need to extract the text from the paragraph tags and combine them into a sentence. After that, we simply use some regex to clean up the text. This is how we get our final text.</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.24.01-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="716" height="228" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.24.01-PM.png 600w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.24.01-PM.png 716w"><figcaption>Now we need to do something called tokenization. This involves breaking down the text into smaller units called tokens. We need to create 2 types of tokenizers: Word Tokenizers and Sentence Tokenizers.</figcaption></figure><p>After collecting all the paragraph tags, we need to extract the text from the paragraph tags and combine them into a sentence. After that, we simply use some regex to clean up the text. This is how we get our final text.</p><p>Now we need to do something called tokenization. This involves breaking down the text into smaller units called tokens. We need to create 2 types of tokenizers: Word Tokenizers and Sentence Tokenizers.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.24.27-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="1144" height="640" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.24.27-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/11/Screenshot-2022-11-12-at-4.24.27-PM.png 1000w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.24.27-PM.png 1144w" sizes="(min-width: 720px) 720px"></figure><p>After we have created our tokenizer, we need to create a word frequency table. This table, as the name implies, records the number of occurrences of each word in the table. However, this table does not include punctuation or stop words, which are words that do not add any value to the text.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.24.47-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="866" height="392" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.24.47-PM.png 600w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.24.47-PM.png 866w" sizes="(min-width: 720px) 720px"></figure><p>After creating our word frequency table, we find that certain words are more common than others. To reflect the true meaning of a word, we had to perform what is called document length normalization. See the slide below for more information.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.25.07-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="1144" height="642" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.25.07-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/11/Screenshot-2022-11-12-at-4.25.07-PM.png 1000w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.25.07-PM.png 1144w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.25.27-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="916" height="318" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.25.27-PM.png 600w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.25.27-PM.png 916w" sizes="(min-width: 720px) 720px"></figure><p>After normalization, we need a sentence scores table that shows the importance of each sentence in our text, which in turn allows us to select the most important sentences in the text. Below is the code to accomplish this in python.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.28.37-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="1136" height="408" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.28.37-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/11/Screenshot-2022-11-12-at-4.28.37-PM.png 1000w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.28.37-PM.png 1136w" sizes="(min-width: 720px) 720px"></figure><p>Now that we have our sentence score table, we can pick out 30% of the total sentences with the highest score. To do this, we use the nlargest function from the heapq module. The nlargest function takes 3 arguments: the number of sentences as the first argument, the table of sentence scores as the second argument, and the key of this table of sentence scores.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.28.55-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="1142" height="436" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.28.55-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/11/Screenshot-2022-11-12-at-4.28.55-PM.png 1000w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.28.55-PM.png 1142w" sizes="(min-width: 720px) 720px"></figure><h3 id="abstractive-text-summary">Abstractive text summary</h3><p>Abstractive text summary is the process of creating the text based on the main ideas. So you can think of it as the AI writing the text in its own words instead of copying the main sentences. For abstract text summarization, we used the huggingface transformers library. </p><ul><li>First, we need to create a pipeline object and assign it a task, which in our case is the summarizer.</li><li> Then we insert our text into the summarizer, set the maximum length of the summary to 400 words</li><li> The minimum length to 100</li><li>Set do_sample to false. This parameter controls what type of decoding takes place.</li></ul><p>After that, we simply return our summary text.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.29.35-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="1282" height="334" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.29.35-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/11/Screenshot-2022-11-12-at-4.29.35-PM.png 1000w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.29.35-PM.png 1282w" sizes="(min-width: 720px) 720px"></figure><h3 id="streamlit-webapp">Streamlit webapp</h3><p>Streamlit is an app framework in Python that allows us to build web apps for data science and machine learning. It is very popular because it is very easy to use and compatible with various libraries like keras, scikit learn, tensorflow, etc. Streamlit webapps are written in Markdown, which allows us to easily create good looking webapps. Since we wanted the website to give the user a choice between entering a website link or text, we created a navigation bar with these options.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.30.03-PM.png" class="kg-image" alt="NYP AI: Tech Week 2022" loading="lazy" width="880" height="484" srcset="https://blog.nyp.ai/content/images/size/w600/2022/11/Screenshot-2022-11-12-at-4.30.03-PM.png 600w, https://blog.nyp.ai/content/images/2022/11/Screenshot-2022-11-12-at-4.30.03-PM.png 880w" sizes="(min-width: 720px) 720px"></figure><p>After that, we simply put a heading and an input field on the page. To generate the text summary, we used the huggingface transformers library to accomplish our task.</p><p>By the end of the event, participants were now more familiar with the basic concepts of AI and knew how to use the various tasks in the huggingface transformers library to accomplish various NLP tasks, and they also knew how to use streamilt to create nice-looking web apps.</p><h2 id="afterthoughts">Afterthoughts</h2><p>We would like to thank all participants for attending. We hope you were able to learn more about AI and its possibilities. We will be back with more content in the future, so stay tuned!</p>]]></content:encoded></item><item><title><![CDATA[NYP AI: Our Journey (2020 - 2022)]]></title><description><![CDATA[<p>In June 2020, NYP AI was born. Our vision - To spread awareness of AI among polytechnic students.</p><h3 id="progress-the-ups">Progress (The ups...)</h3><p>Fast forward 2 years: We&apos;ve grown to a 100+ member interest group, hosted over 10 school-wide events and ultimately found our place as SIT student&apos;s</p>]]></description><link>https://blog.nyp.ai/our-journey-20-22/</link><guid isPermaLink="false">62f64fa0072b6204bb47fe1e</guid><dc:creator><![CDATA[Alex Chien]]></dc:creator><pubDate>Sun, 11 Sep 2022 16:00:00 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2022/09/Light-1.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.nyp.ai/content/images/2022/09/Light-1.png" alt="NYP AI: Our Journey (2020 - 2022)"><p>In June 2020, NYP AI was born. Our vision - To spread awareness of AI among polytechnic students.</p><h3 id="progress-the-ups">Progress (The ups...)</h3><p>Fast forward 2 years: We&apos;ve grown to a 100+ member interest group, hosted over 10 school-wide events and ultimately found our place as SIT student&apos;s go to for Artificial Intelligence events. </p><p>We have our annual flagship NYP AI Summer Camp event, a week long programme introducing students to the up &amp; coming AI concepts such as NLP Transformers and Stock prediction with LSTMs.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/08/image.png" class="kg-image" alt="NYP AI: Our Journey (2020 - 2022)" loading="lazy" width="2000" height="742" srcset="https://blog.nyp.ai/content/images/size/w600/2022/08/image.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/08/image.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2022/08/image.png 1600w, https://blog.nyp.ai/content/images/2022/08/image.png 2091w" sizes="(min-width: 720px) 720px"></figure><p>More recently, we&apos;ve delved more into out-of-the-box algorithms, touching upon Tensorflow Magenta, OpenAI&apos;s CLIP model, and Huggingface&apos;s Transformers, just to name a few.</p><p>As champions of open sourcing, all our content (slides and codes) are freely available online. Our Github repository contains all our event source codes, and the content slides for each of our events can be found in the respective readme.md files. Below are the URLs of our Slides (In a Google Drive folder) and our Github Repo. </p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://drive.google.com/drive/folders/1oLsZOoj1W8GE5IP3AhUh-YU-G37lleHB?usp=sharing&amp;ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">NYP AI Shared Content &#x2013; Google Drive</div><div class="kg-bookmark-description"></div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://ssl.gstatic.com/docs/doclist/images/drive_2022q3_32dp.png" alt="NYP AI: Our Journey (2020 - 2022)"></div></div></a></figure><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="NYP AI: Our Journey (2020 - 2022)"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">NYP-AI</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/a24f0ae3d6e2bf553b3bd00eedebcd960c993b635a944a52e580454d213f37e1/NYP-AI/Learning-Materials" alt="NYP AI: Our Journey (2020 - 2022)"></div></a></figure><p>Our blog is constantly updated to feature our latest initiatives &amp; events. For students who are unsure whether Artificial Intelligence is for them, they can read our blog posts to learn more about our past events. Our blog gives prospective members a glimpse into all our events - such as the concepts we&apos;ve covered and the way we teach these concepts. We even have a &quot;Projects&quot; page on our website, dedicated to showcasing some of our projects from past events - which will hopefully pique the interests of curious students. </p><h3 id="and-the-downs">And the downs...</h3><p>But it didn&apos;t always go so smooth. At the beginning, we were struggling to make a place for ourselves. Our overemphasis on coding proved a double-edged sword as some students (understandably) found coding AI algorithms too daunting. No doubt Machine Learning requires quite a bit of coding, be it during data preprocessing or model building. However, if done right, breaking into this subject can be an enjoyable and smooth one.</p><h3 id="learning-how-to-teach">Learning how to teach</h3><p>We spent the next 2 years &quot;perfecting&quot; the craft of teaching AI, and although we&apos;ve yet to reach the peak, what we can say for sure is that we&apos;re better than our version 2 years ago. </p><p>Here are 3 &quot;mindset shifts&quot; we&apos;ve come to realize, powerful ones which we sure can benefit other interest groups.</p><p><strong>Our first mindset shift: Upholding the relevancy of our events. </strong></p><p>Our first few events always ended up with a trained model in a python notebook. No websites, no applications - just a .ipynb notebook.</p><p>Over time, we realized there were better ways to do this. By creating an application that integrates these AI models, we would accurately mirror real-life deployments of AI. You&apos;ll probably never interact with production AI in a python notebook. Instead, you&apos;ll interact with AI on your phone (Siri, Facial Recognition) or on websites (Recommender systems, Chatbots) instead. Cutting a long story short - We&apos;ll be teaching students how to apply AI in a real-world setting.  </p><p>Furthermore, by showing students how to integrate their trained models into their own applications, we teach them how to use AI in their own personal/school projects. During our past events, we taught students how to save their AI models onto pickle files and deploy them onto their Flask websites. Additionally, we covered how to &quot;AI Supercharge&quot; their applications using AI REST APIs - granting them access to the latest &amp; greatest models, trained by the biggest research labs. After all, why reinvent the wheel when there are already pre-trained models freely available online? </p><p>Finally, by having an application as a deliverable, it serves as a cool end-product, a representation of them having successfully applied AI. It&apos;s this sense of accomplishment which we hope will spur students to delve deeper into AI. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/09/yes.png" class="kg-image" alt="NYP AI: Our Journey (2020 - 2022)" loading="lazy" width="797" height="804" srcset="https://blog.nyp.ai/content/images/size/w600/2022/09/yes.png 600w, https://blog.nyp.ai/content/images/2022/09/yes.png 797w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">Building AI-powered web apps</span></figcaption></figure><p><strong>Our second mindset shift: Concepts over code. </strong></p><p>Coding proved to be a high barrier to entry for students looking to break into AI. Our initial efforts of wanting to provide an in-depth view of AI backfired when we realized that some students could not catch up with the coding exercises.  </p><p>We decided to shift away from our &quot;build from scratch&quot; mentality which led to a lot of (unnecessary) code writing. Instead, we shifted to using interesting Github packages and projects (Huggingface models, CLIP model, Tensorflow Magenta, etc..), drastically reducing the amount of code written while maintaining the integrity of our events. Using these packages, we could easily illustrate AI concepts with highly abstracted pieces of code, ensuring that our attendees wouldn&apos;t get &quot;burnt out&quot; from having to type out long lines of code. </p><p>More recently, we&apos;ve come to embrace no-code solutions. Highly-visual tools such as &quot;Teachable Machine&quot; were excellent in teaching students how to train their first Image classification model. The simple drag-and-drop interface made learning a very painless and interesting experience for first-timers. Other forms of no-code solutions include drag-and-drop model builders such as &quot;Microsoft Cognitive Toolkit&quot; which allow us to teach data preprocessing and hyperparameter tuning easily. </p><p>To put it simply, we came to realize that coding was merely a means to an end; A way for students to gain a better understanding and appreciation of AI. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/09/ye.png" class="kg-image" alt="NYP AI: Our Journey (2020 - 2022)" loading="lazy" width="1000" height="464" srcset="https://blog.nyp.ai/content/images/size/w600/2022/09/ye.png 600w, https://blog.nyp.ai/content/images/2022/09/ye.png 1000w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">Highly visual tools to teach AI</span></figcaption></figure><p> <strong>Our third mindset shift: Publicity &#x1F440;</strong></p><p>An event is only as good as the number of participants it benefits.</p><p>Despite hosting a variety of events, we realized that NYP AI still wasn&apos;t very well-known within NYP SIT. Despite many students taking an interest in AI, a substantial number of them had never attended our events.</p><p>We realized that more had to be done on our end to publicize NYP AI and our events to students. Knowing this, we utilized social media (Instagram), enlisted the help of our teachers and academic club (SIT Club), and used word-of-mouth to increase our mindshare. We organized inter-SIG events such as &quot;Tech in SIT&quot;, a collaboration between all SIT SIGs to host a week-long worth of events. We organized school-wide puzzles during &quot;Solve IT&quot;, a puzzle campaign aimed at teaching students new concepts through gamified puzzles. With the support of our school &amp; teachers, we used NYP open houses &amp; orientations to publicize NYP AI (SIGs in general). Moreover, we decided to introduce AI concepts in a highly beginner-friendly way (As explained in our second mindset shift), which greatly expanded our target audience. </p><p>Our efforts were not in vain. With a more &quot;offensive&quot; publicity strategy, we&apos;ve garnered more average participants for our events. We&apos;ve managed to reach out to other NYP schools such as NYP School of Engineering. Given the interdisciplinary nature of AI, we&apos;re looking to expand NYP AI to other NYP schools in the future, bringing room for more all-rounded collaborations. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/09/image.png" class="kg-image" alt="NYP AI: Our Journey (2020 - 2022)" loading="lazy" width="1095" height="715" srcset="https://blog.nyp.ai/content/images/size/w600/2022/09/image.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/09/image.png 1000w, https://blog.nyp.ai/content/images/2022/09/image.png 1095w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">Publicizing our events</span></figcaption></figure><h3 id="epilogue">Epilogue</h3><p>We&apos;ve made it far, but not without the passion &amp; commitment of the NYP AI leadership team, comprised of six - Jun Cheng, Tony, Dylan, Jing Kai, Nuzul and me. We&apos;re proud of what NYP AI has become and we&apos;re excited for what NYP AI will be as we hand over the torch to our next leadership team.   </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/09/photo_2022-09-21_23-12-59.jpg" class="kg-image" alt="NYP AI: Our Journey (2020 - 2022)" loading="lazy" width="1280" height="960" srcset="https://blog.nyp.ai/content/images/size/w600/2022/09/photo_2022-09-21_23-12-59.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2022/09/photo_2022-09-21_23-12-59.jpg 1000w, https://blog.nyp.ai/content/images/2022/09/photo_2022-09-21_23-12-59.jpg 1280w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">Left to right: Tony, Dylan, Alex, Nuzul, Jun Cheng, (Jing Kai not in photo)</span></figcaption></figure><p>~ Sincerely<br>The NYP AI Team (20-22)</p><p></p>]]></content:encoded></item><item><title><![CDATA[NYP AI: Let's Talk NLP 2022]]></title><description><![CDATA[<p></p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.07.19-PM.png" class="kg-image" alt loading="lazy" width="724" height="366" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/Screenshot-2022-07-19-at-9.07.19-PM.png 600w, https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.07.19-PM.png 724w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.08.07-PM.png" class="kg-image" alt loading="lazy" width="1468" height="294" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/Screenshot-2022-07-19-at-9.08.07-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/Screenshot-2022-07-19-at-9.08.07-PM.png 1000w, https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.08.07-PM.png 1468w" sizes="(min-width: 720px) 720px"></figure><h2 id="lets-talk-nlp">Let&apos;s Talk NLP</h2><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s</div></div></a></figure>]]></description><link>https://blog.nyp.ai/nyp-ai-lets-talk-nlp-2022/</link><guid isPermaLink="false">62d268180cb30c734840252e</guid><category><![CDATA[Events]]></category><dc:creator><![CDATA[Ravuthasamy Premkumar]]></dc:creator><pubDate>Sat, 16 Jul 2022 09:00:00 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2022/07/lets_talk_nlp_poster-2.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.nyp.ai/content/images/2022/07/lets_talk_nlp_poster-2.png" alt="NYP AI: Let&apos;s Talk NLP 2022"><p></p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.07.19-PM.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="724" height="366" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/Screenshot-2022-07-19-at-9.07.19-PM.png 600w, https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.07.19-PM.png 724w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.08.07-PM.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1468" height="294" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/Screenshot-2022-07-19-at-9.08.07-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/Screenshot-2022-07-19-at-9.08.07-PM.png 1000w, https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.08.07-PM.png 1468w" sizes="(min-width: 720px) 720px"></figure><h2 id="lets-talk-nlp">Let&apos;s Talk NLP</h2><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="NYP AI: Let&apos;s Talk NLP 2022"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">NYP-AI</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/a24f0ae3d6e2bf553b3bd00eedebcd960c993b635a944a52e580454d213f37e1/NYP-AI/Learning-Materials" alt="NYP AI: Let&apos;s Talk NLP 2022"></div></a></figure><p>On 16th July 2022, NYP AI hosted its 2nd NLP event where participants had a great time creating their own Spam Classification Model. We covered an intro to Machine Learning, Data Preprocessing, Training our own NLP model, Deploying the Model with Flask and using Hugging Face APIs for semantic Analysis.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/image.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1220" height="691" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/image.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/image.png 1000w, https://blog.nyp.ai/content/images/2022/07/image.png 1220w" sizes="(min-width: 720px) 720px"></figure><p>We kickstarted the session with a quick introduction of Machine Learning and we covered the different types of Machine Learning- Supervised Learning, Unsupervised Learning and Reinforcement Learning while highlighting examples for each of them and the differences between them allowing members to get a good grasp on Machine Learning as a whole.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/image-1.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1223" height="682" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/image-1.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/image-1.png 1000w, https://blog.nyp.ai/content/images/2022/07/image-1.png 1223w" sizes="(min-width: 720px) 720px"></figure><p>After the introduction of Machine Learning, we went through the Spam Dataset and explained the columns. The Dataset had a total of 6k Data and they will be fed into the model.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/image-2.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1224" height="682" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/image-2.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/image-2.png 1000w, https://blog.nyp.ai/content/images/2022/07/image-2.png 1224w" sizes="(min-width: 720px) 720px"></figure><p>After getting a clear understanding of what the spam.csv contained. We proceeded with Data Preprocessing where we used pandas to remove the remove extra columns and rename them. After that, we used the Countvectorizer from Sklearn to convert words into vectors.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/image-3.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="934" height="476" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/image-3.png 600w, https://blog.nyp.ai/content/images/2022/07/image-3.png 934w" sizes="(min-width: 720px) 720px"></figure><p>Once we preprocessed the data, we split the data into a train and test set. From there, we proceeded to train our model using Logistic Regression from Sklearn as well. Then we tested out our model using the data from the test set.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/image-4.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1219" height="690" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/image-4.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/image-4.png 1000w, https://blog.nyp.ai/content/images/2022/07/image-4.png 1219w" sizes="(min-width: 720px) 720px"></figure><p>Lastly in the pipeline overview, we moved to Generating Predictions. As a human, we tend to make mistakes and it would take us a long time when we try to analyze a huge data set and make predictions, however by using ML we can save a lot of time and there will be close to 0% errors. The participants also got the chance to create their own text sentence and check out if their sentence is Spam or Ham by using the model and vectorizer from earlier.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/07/image-5.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1218" height="685" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/image-5.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/image-5.png 1000w, https://blog.nyp.ai/content/images/2022/07/image-5.png 1218w" sizes="(min-width: 720px) 720px"></figure><p>It would be very inefficient if we had to train the model every time we wanted make a prediction. To eliminate this and provide persistence, we utilized Pickle to save our CountVectorizer &amp; Logistic Regression instances. </p><h2 id="using-flask-to-deploy-our-models">Using Flask to deploy our models</h2><p>To invoke the spam text classifier using our flask website we will create an app route and a function which does 3 things.</p><ol><li>Collect the text entered by the user in the input field</li><li>Convert this text into a vector using our vectorizer pickle file</li><li>Predict whether this vector is spam or not</li><li>Return the result to the website</li></ol><p>The code below does these steps for us</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.02.40-PM.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1154" height="590" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/Screenshot-2022-07-19-at-9.02.40-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/Screenshot-2022-07-19-at-9.02.40-PM.png 1000w, https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.02.40-PM.png 1154w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">The flask route function that will classify whether a given text is either spam or not</span></figcaption></figure><h2 id="using-huggingface-api-endpoints-%F0%9F%A4%97">Using Huggingface API endpoints &#x1F917;</h2><p>We used the hugging face sentiment analysis API  to classify whether the given text is positive, negative or neutral.</p><p><a href="https://huggingface.co/finiteautomata/bertweet-base-sentiment-analysis?ref=blog.nyp.ai">https://huggingface.co/finiteautomata/bertweet-base-sentiment-analysis</a></p><p>This is the API we will be using.</p><p>To use this API we need to click on the link go to deploy and then click on accelerated inference. After that, we copy the pre-generated python code and paste it into our python file. If you are new to hugging face you will also have to create an API endpoint, to do that you may follow the steps given in the link below. (<a href="https://huggingface.co/docs/api-inference/quicktour?ref=blog.nyp.ai">https://huggingface.co/docs/api-inference/quicktour</a>)</p><p>After doing that we will print the variable output to check if we imported our API correctly.</p><blockquote>[[{&apos;label&apos;: &apos;NEG&apos;, &apos;score&apos;: 0.0017993206856772304}, {&apos;label&apos;: &apos;NEU&apos;, &apos;score&apos;: 0.0065250033512711525}, {&apos;label&apos;: &apos;POS&apos;, &apos;score&apos;: 0.991675615310669}]]</blockquote><p>So with this in mind, we will pass in our own sentences and have it do the same thing. So we will be invoking this API using our flask website. To do this we will be creating a function called sentiment() that will be accessible using the /sentiment route.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.04.54-PM.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1542" height="400" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/Screenshot-2022-07-19-at-9.04.54-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/Screenshot-2022-07-19-at-9.04.54-PM.png 1000w, https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.04.54-PM.png 1542w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">sentiment analysis function that returns the sentiment score</span></figcaption></figure><p>This is our output that is rendered on the website</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.05.25-PM.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1544" height="144" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/Screenshot-2022-07-19-at-9.05.25-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/Screenshot-2022-07-19-at-9.05.25-PM.png 1000w, https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.05.25-PM.png 1544w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">sentiment score outputted on the website</span></figcaption></figure><p>However, this output might be a bit hard to understand for the user so we will be outputting it to make it more understandable for the user.</p><p>To do that we will create 2 empty variables pos_output and neg_output and assign the positive and negative scores to these variables respectively. The output will also be in percentages.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.05.56-PM.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="1552" height="366" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/Screenshot-2022-07-19-at-9.05.56-PM.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/07/Screenshot-2022-07-19-at-9.05.56-PM.png 1000w, https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.05.56-PM.png 1552w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">code to reformat the sentiment score output</span></figcaption></figure><p>The output now looks something like this</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.06.40-PM.png" class="kg-image" alt="NYP AI: Let&apos;s Talk NLP 2022" loading="lazy" width="932" height="440" srcset="https://blog.nyp.ai/content/images/size/w600/2022/07/Screenshot-2022-07-19-at-9.06.40-PM.png 600w, https://blog.nyp.ai/content/images/2022/07/Screenshot-2022-07-19-at-9.06.40-PM.png 932w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">reformatted output</span></figcaption></figure><h2 id="challenges-faced-while-working-on-this-project">Challenges faced while working on this project</h2><p>One of the challenges was that the flask app would not work properly when using virtual environments and we had to manually keep killing the processes on the flask port. To solve this problem we used conda env and also set the app to run on a specific port.</p>]]></content:encoded></item><item><title><![CDATA[NYP AI: Intro to AI 2022]]></title><description><![CDATA[<h2 id="intro-to-ai">Intro To AI</h2>
<figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event</div></div></a></figure>]]></description><link>https://blog.nyp.ai/nyp-ai-intro-to-ai-2022/</link><guid isPermaLink="false">627f6da56188424ff368fc06</guid><category><![CDATA[Events]]></category><category><![CDATA[Past]]></category><dc:creator><![CDATA[Ravuthasamy Premkumar]]></dc:creator><pubDate>Sat, 14 May 2022 01:12:00 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2022/06/Intro-to-AI-1.png" medium="image"/><content:encoded><![CDATA[<h2 id="intro-to-ai">Intro To AI</h2>
<figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="NYP AI: Intro to AI 2022"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">NYP-AI</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/a24f0ae3d6e2bf553b3bd00eedebcd960c993b635a944a52e580454d213f37e1/NYP-AI/Learning-Materials" alt="NYP AI: Intro to AI 2022"></div></a></figure><img src="https://blog.nyp.ai/content/images/2022/06/Intro-to-AI-1.png" alt="NYP AI: Intro to AI 2022"><p>Intro To AI - This weekend on 14th May 2022, NYP AI hosted its second event covering the basics of AI to spark interest in beginners. We covered where Machine Learning can be applied, the 3 main areas of Machine Learning, Training a Image Classification Model with <a href="teachablemachine.withgoogle.com">Teachable Machine</a> and more...</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/05/image-3.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1920" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-3.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-3.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2022/05/image-3.png 1600w, https://blog.nyp.ai/content/images/2022/05/image-3.png 1920w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">What&apos;s Machine Learning?</span></figcaption></figure><p>After learning about real-life examples of machine learning through discussions with the help of Mentimeter, we introduced Machine Learning in a way that&apos;s easier to comprehend by comparing it to Traditional Programming. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/05/image-4.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1920" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-4.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-4.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2022/05/image-4.png 1600w, https://blog.nyp.ai/content/images/2022/05/image-4.png 1920w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">What are features and labels?</span></figcaption></figure><p>Then, we covered what features and labels meant in the context of machine learning with the example of Predicting Housing Prices. Once again we went back to Mentimeter for further discussions on examples of features and labels, where Email Body is the feature and whether it&apos;s spam or not is the label in the context of Email Spam Classification.</p><p>Additionally, we went through the 3 main types of Machine Learning, Supervised Learning, Unsupervised Learning and Reinforcement Learning highlighting examples for each of them and the differences between them allowing members to get a good grasp on Machine Learning as a whole.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/05/image-5.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1920" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-5.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-5.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2022/05/image-5.png 1600w, https://blog.nyp.ai/content/images/2022/05/image-5.png 1920w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">Machine Learning Pipeline</span></figcaption></figure><p>Finally, we ended the first part of the session with the Machine Learning Pipeline to encapsulate what was learnt and show how it applied efficiently in the real world. At this stage, participants were able to ask questions to clarify their doubts about any part of Machine Learning.</p><h2 id="computer-vision">Computer Vision</h2>
<figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-6.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="660" height="370" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-6.png 600w, https://blog.nyp.ai/content/images/2022/05/image-6.png 660w"></figure><p>For Computer Vision, we started with what&apos;s Computer Vison about and explained Image Captioning and Optical Character Recognition. We also gave an example of how the image in the slide would be read if we used Computer Vision. From here we moved on to how an image is represented in a NumPy array to computers.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-7.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="668" height="376" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-7.png 600w, https://blog.nyp.ai/content/images/2022/05/image-7.png 668w"></figure><p>For Grayscale Images; 0 corresponds to black, 255 corresponds to white  and anything in the middle is grey.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-8.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="665" height="371" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-8.png 600w, https://blog.nyp.ai/content/images/2022/05/image-8.png 665w"></figure><p>For RGB images, each pixel has its own NumPy array which contains [Red Intensity, Green Intensity, Blue Intensity] which also contains the range of 0 - 255. At this stage, members were able to ask questions to clarify their doubts on any part of Computer Vision. Even though the introduction to Computer Vision was short, it was succinct participants were able to learn the essence of it.</p><h2 id="image-classification">Image Classification</h2><p></p><p>So, what is image classification? Simply put, it is a supervised learning technique to train a model to recognize labelled pictures.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-13.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="750" height="500" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-13.png 600w, https://blog.nyp.ai/content/images/2022/05/image-13.png 750w" sizes="(min-width: 720px) 720px"></figure><p>The following pipeline below illustrates the steps in image classification:</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-11.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1014" height="578" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-11.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-11.png 1000w, https://blog.nyp.ai/content/images/2022/05/image-11.png 1014w" sizes="(min-width: 720px) 720px"></figure><p></p><p>To start off, the first step would be to gather data. If we want to train a model to classify between cats and dogs, you would have to download some images of those pets from the internet. </p><p>Afterwards, we also need to define the labels for each class:</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-15.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1099" height="377" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-15.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-15.png 1000w, https://blog.nyp.ai/content/images/2022/05/image-15.png 1099w" sizes="(min-width: 720px) 720px"></figure><p>Second, we will make use of the data we gathered earlier to train the model. </p><p>A model is trained by extracting key features of an image. </p><p>Suppose that we are training a model to classify a shoe, when the picture is processed, it extracts features such as the edges of the shoe. By doing so, the model will use that to determine whether an image passed on to it, belongs to a shoe class or not.   </p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-17.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1098" height="344" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-17.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-17.png 1000w, https://blog.nyp.ai/content/images/2022/05/image-17.png 1098w" sizes="(min-width: 720px) 720px"></figure><p></p><p>Now that the model is trained, we are ready to test the model! Let us take the earlier example of classifying cats and dogs. To test the model, simply upload new images of these pets and see if the model can classify those images correctly.</p><h2 id="teachable-machines">Teachable Machines</h2><p></p><p>It&apos;s time to put the knowledge we acquire into practical use. We are all familiar with the childhood game &quot;Scissors, Paper, Stone&quot;, in this session, we will use teachable machines to train an image classification model to differentiate between paper and stone. </p><p>Teachable machine is a platform which makes it easy to create your ML model without any coding any line of codes, all you have to do is to click a few buttons and you are ready to go with your very first model :D</p><p>Click on the following URL to the image classification page: </p><p><a href="https://teachablemachine.withgoogle.com/train/image?ref=blog.nyp.ai">https://teachablemachine.withgoogle.com/train/image</a></p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-18.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1807" height="839" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-18.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-18.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2022/05/image-18.png 1600w, https://blog.nyp.ai/content/images/2022/05/image-18.png 1807w" sizes="(min-width: 720px) 720px"></figure><p>The interface can be broken down into 3 sections, starting from the left, it is where you define your classes and upload your data into the model. </p><p>Click on the pencil icon to edit the name of the class, change it &quot;Rock&quot;. Similarly, change the name of the second class to &quot;Scissors&quot;.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-19.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1027" height="397" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-19.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-19.png 1000w, https://blog.nyp.ai/content/images/2022/05/image-19.png 1027w" sizes="(min-width: 720px) 720px"></figure><p>The next step would be to turn on your webcam, and click on the &quot;webcam&quot; button. By turning on our webcams and forming the shapes of paper and stone using our hands, we can input these images into the model in real-time.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-20.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1019" height="388" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-20.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-20.png 1000w, https://blog.nyp.ai/content/images/2022/05/image-20.png 1019w" sizes="(min-width: 720px) 720px"></figure><p>Afterwards, to form the shape of a rock, raise up your hand and clenched your fist. Click on the &quot;hold to record&quot; button to begin collecting data.</p><p>It is recommended to capture a similar number of data, if you capture 100 sets of rock data, try to capture around 100 sets of paper data as well. </p><p><em>*Note to rotate your fist at different angles so as to capture a more diversified set of data. To diversify the data, even more, you can move it around your hand instead of statically leaving it in the same position*</em></p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-21.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1025" height="355" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-21.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-21.png 1000w, https://blog.nyp.ai/content/images/2022/05/image-21.png 1025w" sizes="(min-width: 720px) 720px"></figure><p></p><p>After collecting data for both rock and scissors classes, the next step would be to train your model. </p><p>Under the &#x201C;Training&#x201D; Tab, click on the &#x201C;Train Model&#x201D; button to start training your model.</p><p>Important: You must leave the tab open for the model to train</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-22.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="1024" height="386" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-22.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/05/image-22.png 1000w, https://blog.nyp.ai/content/images/2022/05/image-22.png 1024w" sizes="(min-width: 720px) 720px"></figure><p>For the final step of this practical session, we have to test the model to determine its accuracy in classifying the different classes. Form the shape of stone and paper and rotate them at different angles or move your hand around in a different position to test it.</p><p>The output section is the confidence level of the model in classifying the classes. </p><p>If the model is not accurate in classifying some variations of the data, do consider adding more diversified data to improve its accuracy. However, the drawback of adding more data would be that it would take a longer time to train the model.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/05/image-23.png" class="kg-image" alt="NYP AI: Intro to AI 2022" loading="lazy" width="940" height="618" srcset="https://blog.nyp.ai/content/images/size/w600/2022/05/image-23.png 600w, https://blog.nyp.ai/content/images/2022/05/image-23.png 940w" sizes="(min-width: 720px) 720px"></figure><p>Hope you have learned something and had fun training your very first image classification model!</p><p>We will be back with more interesting content in the future, stay tuned!</p><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[NYP AI: Let's Generate 2022]]></title><description><![CDATA[This holiday, we're all about AI for generation: Music & Images.]]></description><link>https://blog.nyp.ai/nyp-ai/</link><guid isPermaLink="false">625bc5734335b5d7ed973252</guid><category><![CDATA[Events]]></category><category><![CDATA[Past]]></category><dc:creator><![CDATA[Alex Chien]]></dc:creator><pubDate>Tue, 22 Mar 2022 08:10:00 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2022/04/poster.png" medium="image"/><content:encoded><![CDATA[<figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="NYP AI: Let&apos;s Generate 2022"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">NYP-AI</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/a24f0ae3d6e2bf553b3bd00eedebcd960c993b635a944a52e580454d213f37e1/NYP-AI/Learning-Materials" alt="NYP AI: Let&apos;s Generate 2022"></div></a></figure><h2 id="lets-generate">Let&apos;s Generate</h2><img src="https://blog.nyp.ai/content/images/2022/04/poster.png" alt="NYP AI: Let&apos;s Generate 2022"><p>Generative AI - This holiday from the 21st-22nd March 2022, NYP AI hosted its first event solely focused on AI for generation. &#xA0;Using the latest, state-of-the-art deep learning architectures &amp; models, we <em>generated images &amp; music melodies</em> using Artificial Intelligence.</p><h2 id="day-1-fun-with-images">Day 1: Fun with Images</h2><p>Using AnimeGANv2, we are able to generate an &quot;anime&quot; version from any given image. AnimeGANv2 is a Deep Learning model combining elements of Generative Adversarial Networks &amp; Neutral Style Transfer.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/04/image.png" class="kg-image" alt="NYP AI: Let&apos;s Generate 2022" loading="lazy" width="1145" height="569" srcset="https://blog.nyp.ai/content/images/size/w600/2022/04/image.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/04/image.png 1000w, https://blog.nyp.ai/content/images/2022/04/image.png 1145w" sizes="(min-width: 720px) 720px"></figure><p>Using pre-trained models from PyTorch, we&apos;re able to implement our first GAN under 7 lines of code...</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/04/image-1.png" class="kg-image" alt="NYP AI: Let&apos;s Generate 2022" loading="lazy" width="1273" height="658" srcset="https://blog.nyp.ai/content/images/size/w600/2022/04/image-1.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/04/image-1.png 1000w, https://blog.nyp.ai/content/images/2022/04/image-1.png 1273w" sizes="(min-width: 720px) 720px"></figure><p>Diving deeper: We explored CLIP, where Natural Language Processing &amp; Computer Vision converges. CLIP is a SOTA deep learning model boasting exceptional capabilities such as zero-shot classification, image similarity search &amp; much more...</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/04/image-2.png" class="kg-image" alt="NYP AI: Let&apos;s Generate 2022" loading="lazy" width="976" height="378" srcset="https://blog.nyp.ai/content/images/size/w600/2022/04/image-2.png 600w, https://blog.nyp.ai/content/images/2022/04/image-2.png 976w" sizes="(min-width: 720px) 720px"></figure><p>Using the CLIP library hosted on Github, we created two models<br>1. Zero-shot Classifier: Give a list of textual descriptions &amp; have the model decide which description best fits the given image<br>2. Image similarity search: Finding the most similar image among a bunch of images, given an input image... </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/04/image-4.png" class="kg-image" alt="NYP AI: Let&apos;s Generate 2022" loading="lazy" width="820" height="710" srcset="https://blog.nyp.ai/content/images/size/w600/2022/04/image-4.png 600w, https://blog.nyp.ai/content/images/2022/04/image-4.png 820w" sizes="(min-width: 720px) 720px"><figcaption>Zero-shot classification</figcaption></figure><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/04/image-3.png" class="kg-image" alt="NYP AI: Let&apos;s Generate 2022" loading="lazy" width="983" height="537" srcset="https://blog.nyp.ai/content/images/size/w600/2022/04/image-3.png 600w, https://blog.nyp.ai/content/images/2022/04/image-3.png 983w" sizes="(min-width: 720px) 720px"></figure><h2 id="day-2-music-generation">Day 2: Music Generation</h2><p>Ever wondered how to leverage music for machine learning? Here, we created 2 use cases for music in ML...</p><p>Using Tensorflow Magenta, a popular Machine Learning library for art, we used...<br>1. MelodyRNN to continue a given musical sequence by generating subsequent notes<br>2. Music VAE to interpolate two musical sequences together (Think of it as smoothly transitioning between song A to song B)</p><p>Machine Learning is about the data... Hence, we dived into &quot;Note Sequence&quot; at the start. A Note Sequence is a datatype we use for music, which contains a sequence of notes that form a musical melody. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2022/04/image-5.png" class="kg-image" alt="NYP AI: Let&apos;s Generate 2022" loading="lazy" width="935" height="581" srcset="https://blog.nyp.ai/content/images/size/w600/2022/04/image-5.png 600w, https://blog.nyp.ai/content/images/2022/04/image-5.png 935w" sizes="(min-width: 720px) 720px"><figcaption>Creating notes with code... pretty cool huh</figcaption></figure><p>MelodyRNN is an LSTM (Long-Short term memory) model which is used for continuing a given sequence. Apart from generating music, it&apos;s also used to generate text, etc...</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/04/image-6.png" class="kg-image" alt="NYP AI: Let&apos;s Generate 2022" loading="lazy" width="944" height="564" srcset="https://blog.nyp.ai/content/images/size/w600/2022/04/image-6.png 600w, https://blog.nyp.ai/content/images/2022/04/image-6.png 944w" sizes="(min-width: 720px) 720px"></figure><p>Music VAE, short for Variational Auto Encoder, allows us to generate a &quot;transition phase&quot; from music A to B. </p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/04/image-7.png" class="kg-image" alt="NYP AI: Let&apos;s Generate 2022" loading="lazy" width="1049" height="586" srcset="https://blog.nyp.ai/content/images/size/w600/2022/04/image-7.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/04/image-7.png 1000w, https://blog.nyp.ai/content/images/2022/04/image-7.png 1049w" sizes="(min-width: 720px) 720px"></figure><p>By simply specifying how long we want our transition to be, we can generate a new piece, combining multiple songs into one...</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2022/04/image-8.png" class="kg-image" alt="NYP AI: Let&apos;s Generate 2022" loading="lazy" width="1170" height="560" srcset="https://blog.nyp.ai/content/images/size/w600/2022/04/image-8.png 600w, https://blog.nyp.ai/content/images/size/w1000/2022/04/image-8.png 1000w, https://blog.nyp.ai/content/images/2022/04/image-8.png 1170w" sizes="(min-width: 720px) 720px"></figure><h2 id="thats-a-wrap">That&apos;s a wrap</h2><p>Generative AI is one of the coolest, up &amp; coming applications of AI. We hope that you enjoyed learning about it, just as much as we enjoyed creating this content &#x1F609;</p><p>Until our next event, stay safe!</p><p>~ The NYP AI Team </p>]]></content:encoded></item><item><title><![CDATA[NYP AI: NLP & Deployment]]></title><description><![CDATA[<p>NYP AI: NLP &amp; Deployment is held in conjunction with Nanyang Polytechnic&apos;s Tech In SIT initiative, a collaboration between the 4 special interest groups in NYP SIT. &#xA0;On the 22nd of December, NYP AI hosted our Artificial Intelligence event: NLP &amp; Deployment. This is aimed at Year</p>]]></description><link>https://blog.nyp.ai/nyp-ai-nlp-deployment/</link><guid isPermaLink="false">61c5321c5840ea1c56783710</guid><category><![CDATA[Events]]></category><category><![CDATA[Past]]></category><dc:creator><![CDATA[Alex Chien]]></dc:creator><pubDate>Fri, 24 Dec 2021 03:08:46 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2021/12/Banner.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.nyp.ai/content/images/2021/12/Banner.jpg" alt="NYP AI: NLP &amp; Deployment"><p>NYP AI: NLP &amp; Deployment is held in conjunction with Nanyang Polytechnic&apos;s Tech In SIT initiative, a collaboration between the 4 special interest groups in NYP SIT. &#xA0;On the 22nd of December, NYP AI hosted our Artificial Intelligence event: NLP &amp; Deployment. This is aimed at Year 1 students who want to discover their interests in the Tech landscape. </p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="NYP AI: NLP &amp; Deployment"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">NYP-AI</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/a24f0ae3d6e2bf553b3bd00eedebcd960c993b635a944a52e580454d213f37e1/NYP-AI/Learning-Materials" alt="NYP AI: NLP &amp; Deployment"></div></a></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/12/NYP-AI-Onboarding.jpg" class="kg-image" alt="NYP AI: NLP &amp; Deployment" loading="lazy" width="1080" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2021/12/NYP-AI-Onboarding.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/12/NYP-AI-Onboarding.jpg 1000w, https://blog.nyp.ai/content/images/2021/12/NYP-AI-Onboarding.jpg 1080w" sizes="(min-width: 720px) 720px"><figcaption>Learning NLP: Creating own clickbait classifier &amp; Deployment</figcaption></figure><p>Our end product was simple: A Flask application that performed two functions<br>1. Clickbait Classification using our own trained model<br>2. Sentiment Analysis using HuggingFace APIs</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/12/image-8.png" class="kg-image" alt="NYP AI: NLP &amp; Deployment" loading="lazy"><figcaption>Sentiment Analysis on Flask</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/12/image-9.png" class="kg-image" alt="NYP AI: NLP &amp; Deployment" loading="lazy"><figcaption>Clickbait Classifier on Flask</figcaption></figure><h3 id="training-our-clickbait-classifier">Training our Clickbait Classifier</h3><p>To start off, we covered Text Preprocessing techniques, notably the Count Vectorizer. This was followed by an introduction to the Logistic Regression classification algorithm. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/12/image.png" class="kg-image" alt="NYP AI: NLP &amp; Deployment" loading="lazy" width="1075" height="539" srcset="https://blog.nyp.ai/content/images/size/w600/2021/12/image.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/12/image.png 1000w, https://blog.nyp.ai/content/images/2021/12/image.png 1075w" sizes="(min-width: 720px) 720px"><figcaption>Count Vectorizer</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/12/image-1.png" class="kg-image" alt="NYP AI: NLP &amp; Deployment" loading="lazy" width="1037" height="361" srcset="https://blog.nyp.ai/content/images/size/w600/2021/12/image-1.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/12/image-1.png 1000w, https://blog.nyp.ai/content/images/2021/12/image-1.png 1037w" sizes="(min-width: 720px) 720px"><figcaption>Using the Logistic Regression Algorithm</figcaption></figure><p>Imagine the inefficiency if we have to train our model every time we want to make a prediction... To provide persistence, we utilized Pickle to save our CountVectorizer &amp; Logistic Regression instances. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/12/image-2.png" class="kg-image" alt="NYP AI: NLP &amp; Deployment" loading="lazy" width="943" height="527" srcset="https://blog.nyp.ai/content/images/size/w600/2021/12/image-2.png 600w, https://blog.nyp.ai/content/images/2021/12/image-2.png 943w" sizes="(min-width: 720px) 720px"><figcaption>Pickle for persistency :)</figcaption></figure><p> Moving on to Deployment, we utilized the Flask web framework. We utilized our trained model to make backend predictions.</p><h3 id="using-api-endpoints">Using API Endpoints</h3><p>Using HuggingFace&apos;s API Hub, we were able to tap into state-of-the-art Models, without having to train them on our own. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/12/image-6.png" class="kg-image" alt="NYP AI: NLP &amp; Deployment" loading="lazy"><figcaption>HuggingFace&apos;s Sentiment Analysis API</figcaption></figure><p>Using the Requests library, we are able to interface with the API in python</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/12/image-7.png" class="kg-image" alt="NYP AI: NLP &amp; Deployment" loading="lazy" width="1126" height="566" srcset="https://blog.nyp.ai/content/images/size/w600/2021/12/image-7.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/12/image-7.png 1000w, https://blog.nyp.ai/content/images/2021/12/image-7.png 1126w" sizes="(min-width: 720px) 720px"></figure><p>One way for AI to provide value is through exposure in Web Applications. After obtaining our two AI tools - Our trained model &amp; API, we implemented both of them onto a website via Flask, hence allowing anyone to utilize these built solutions. </p><h3 id="afterthoughts">Afterthoughts</h3><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/12/image-10.png" class="kg-image" alt="NYP AI: NLP &amp; Deployment" loading="lazy" width="1852" height="838" srcset="https://blog.nyp.ai/content/images/size/w600/2021/12/image-10.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/12/image-10.png 1000w, https://blog.nyp.ai/content/images/size/w1600/2021/12/image-10.png 1600w, https://blog.nyp.ai/content/images/2021/12/image-10.png 1852w" sizes="(min-width: 720px) 720px"><figcaption>NYP AI: NLP &amp; Deployment</figcaption></figure><p>Thanks to all participants who made it - we hope you&apos;ve learnt something new :) <br>A shoutout to the 3 other Interest Groups involved in Tech Week 2021<br>NYP Infosec: <a href="https://nypinfosec.blogspot.com/p/about-us.html?ref=blog.nyp.ai">https://nypinfosec.blogspot.com/p/about-us.html</a><br>NYP DSC: <a href="https://discord.gg/jWqkPB9PBn?ref=blog.nyp.ai">https://discord.gg/jWqkPB9PBn</a><br>NYP LIT: <a href="https://nyp-lit.github.io/?ref=blog.nyp.ai">https://nyp-lit.github.io/</a></p><p>Until then!</p><p>~ NYP AI</p>]]></content:encoded></item><item><title><![CDATA[NYP AI Summer Camp 2021]]></title><description><![CDATA[<p>NYP AI Summer Camp 2021 is the second AI Summer Camp hosted by NYP AI, held from 20th September - 24th September, 2pm - 4:30pm daily. This time, we dabbled into applicable and interesting AI, including AI Stock Prediction, Face Detection &amp; Tweets impersonation...</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A</div></div></a></figure>]]></description><link>https://blog.nyp.ai/nyp-ai-summer-camp-2021-2/</link><guid isPermaLink="false">615424f2e231cb87e6735760</guid><category><![CDATA[Events]]></category><category><![CDATA[Past]]></category><dc:creator><![CDATA[Alex Chien]]></dc:creator><pubDate>Wed, 29 Sep 2021 09:33:43 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2021/09/SummerCampBanner.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.nyp.ai/content/images/2021/09/SummerCampBanner.jpg" alt="NYP AI Summer Camp 2021"><p>NYP AI Summer Camp 2021 is the second AI Summer Camp hosted by NYP AI, held from 20th September - 24th September, 2pm - 4:30pm daily. This time, we dabbled into applicable and interesting AI, including AI Stock Prediction, Face Detection &amp; Tweets impersonation...</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="NYP AI Summer Camp 2021"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">NYP-AI</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/a24f0ae3d6e2bf553b3bd00eedebcd960c993b635a944a52e580454d213f37e1/NYP-AI/Learning-Materials" alt="NYP AI Summer Camp 2021"></div></a></figure><h2 id="day-1-computer-vision">Day 1: Computer Vision</h2><p>Diving into Day 1, we covered the Open-CV library, including how to read images and capture live frames from our computer&apos;s camera...</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-1.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1245" height="628" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-1.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-1.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-1.png 1245w" sizes="(min-width: 720px) 720px"><figcaption>Using the VideoCapture object from cv2</figcaption></figure><p>We went on to Object Detection, utilizing CV2&apos;s inbuilt CascadeClassifier. From converting images to grayscale, to outputting the bounding boxes, the entire pipeline was coded out. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1235" height="617" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image.png 1000w, https://blog.nyp.ai/content/images/2021/09/image.png 1235w" sizes="(min-width: 720px) 720px"><figcaption>Bounding Box for our Object Detection Algorithm</figcaption></figure><p>Finally, we utilized Streamlit to host our model online. Using Github to store our code, and the Streamlit Sharing app, we were able to place our website on the World Wide Web...</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-4.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="797" height="804" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-4.png 600w, https://blog.nyp.ai/content/images/2021/09/image-4.png 797w" sizes="(min-width: 720px) 720px"><figcaption>Website hosted on streamlit&apos;s platform</figcaption></figure><h2 id="day-2-natural-language-processing">Day 2: Natural Language Processing</h2><p>Starting off Day 2, two preprocessing techniques for text was covered: Tokenization &amp; Word Stemming</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-5.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1285" height="597" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-5.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-5.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-5.png 1285w" sizes="(min-width: 720px) 720px"><figcaption>Tokenization in Python</figcaption></figure><p>We then went on to explore the capabilities of NLP models, using the Huggingface library for NLP tasks including Text Summarization, Text Generation, Sentiment Analysis, Masked Language Modeling. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-6.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1127" height="628" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-6.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-6.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-6.png 1127w" sizes="(min-width: 720px) 720px"><figcaption>Huggingface&apos;s Transformers library</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-7.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1198" height="637" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-7.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-7.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-7.png 1198w" sizes="(min-width: 720px) 720px"><figcaption>Masked Language Modeling&#xA0;</figcaption></figure><p>Named Entity Recognition using spaCy was also covered</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-8.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1287" height="607" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-8.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-8.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-8.png 1287w" sizes="(min-width: 720px) 720px"><figcaption>NER&#xA0;</figcaption></figure><p>Diving deeper, we moved on to Word Embeddings, which most State-Of-The-Art Machine Learning NLP models utilize. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-9.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1211" height="610" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-9.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-9.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-9.png 1211w" sizes="(min-width: 720px) 720px"><figcaption>Word embeddings explained</figcaption></figure><p>We utilized Tensorflow&apos;s Embedding Projector (<a href="https://projector.tensorflow.org/?ref=blog.nyp.ai">https://projector.tensorflow.org/</a>) to visualize embeddings in 3D space. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-10.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1473" height="957" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-10.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-10.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-10.png 1473w" sizes="(min-width: 720px) 720px"><figcaption>Embedding Projector</figcaption></figure><p>Pretrained Embedding Layers were obtained from Tensorflow Hub, for us to obtain our very own word embeddings.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-11.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1225" height="611" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-11.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-11.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-11.png 1225w" sizes="(min-width: 720px) 720px"><figcaption>Downloading a Pretrained Word Embedding layer from Tensorflow Hub</figcaption></figure><p>Finally, to measure the similarity of two words, we utilized the Cosine Similarity function on the word embeddings.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-12.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1125" height="553" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-12.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-12.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-12.png 1125w" sizes="(min-width: 720px) 720px"><figcaption>Obtaining the Cosine Similarity between two words (embeddings)</figcaption></figure><h2 id="day-3-time-series">Day 3: Time Series</h2><p>Stock Prediction with Deep Learning... We used Yahoo Finance to obtain the past 5 Years of financial Data for AAPL stock. We would then predict the closing price. </p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/09/image-13.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1250" height="601" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-13.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-13.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-13.png 1250w" sizes="(min-width: 720px) 720px"></figure><p>Today, we introduced preprocessing techniques for Time Series, most notably the <strong>Sliding Window</strong> method.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://lh5.googleusercontent.com/Xbu_ZZCDiHL4Y8iirz5Rz60kof1r1ZCYdmx7M8SczKdLtd_GtMhqba7Tn5R3lV6Yf9DV3XVkru9NWrrvhDkQPr-t4jmY5u6ofaL2b2QxiEdTRxV4sl2GjoclI1v4aPEQw-48S5od3Q8=s0" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy"><figcaption>Sliding Window method visualized</figcaption></figure><p>The Sliding Window method would allow us to create datasets for Time Series Prediction</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-14.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy"><figcaption>For Loop to create our Dataset</figcaption></figure><p>In our case, we had a window size of 60, meaning that we would use the past 60 days worth of closing prices to predict the next closing price.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-15.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1037" height="610" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-15.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-15.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-15.png 1037w" sizes="(min-width: 720px) 720px"><figcaption>Visualizing our x (input) and y (output)</figcaption></figure><p>Moving on to Deep Learning, we covered concepts like Layer Types and Activation Functions.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-16.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1200" height="598" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-16.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-16.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-16.png 1200w" sizes="(min-width: 720px) 720px"><figcaption>Level of our Deep Learning Layers</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-17.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1270" height="445" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-17.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-17.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-17.png 1270w" sizes="(min-width: 720px) 720px"><figcaption>Deep Learning Activation Functions</figcaption></figure><p>We then dissected the Tensorflow Deep Learning Pipeline: The 4-step process of Defining, Compiling, Training &amp; Evaluating</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-19.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy"><figcaption>Deep Learning Pipeline</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-20.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy"><figcaption>Compilation of our Model</figcaption></figure><p>Finally, we made predictions on our Validation set and compared them to the actual prices (Funnily enough, this was during the Evergrande crisis.. so you could see a steep descent in global prices...) &#x1F92A;</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-21.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1204" height="622" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-21.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-21.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-21.png 1204w" sizes="(min-width: 720px) 720px"><figcaption>Using Matplotlib to visualize our predictions (Total of 120 days)</figcaption></figure><h2 id="day-4">Day 4</h2><p>Here, we explore the malicious use cases of Artificial Intelligence. Our task for the day: Learn to impersonate someone&apos;s tweets.</p><p>We utilized Snscrape for our Tweets Scraping. By specifying the username, we could extract a specified number of tweets from that person and write them out to a .txt file. </p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/09/image-22.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1062" height="599" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-22.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-22.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-22.png 1062w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-23.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy"><figcaption>Code for retrieving tweets</figcaption></figure><p>For Text Generation, we utilized Markov Chains.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-24.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1110" height="596" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-24.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-24.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-24.png 1110w" sizes="(min-width: 720px) 720px"><figcaption>Markov Chains as Stochastic Model</figcaption></figure><p>For our Malicious Use Case, we would replace all URLs in the tweets with our own malicious URL. We would then fit our Model on these preprocessed tweets.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-25.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy"><figcaption>Regex Function for replacing all URLs with our modified URL</figcaption></figure><p>By fitting our model on these tweets, we are able to capture the linguistic style of that user, hence &quot;impersonating&quot; his/her tweets...</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-26.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1033" height="377" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-26.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-26.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-26.png 1033w" sizes="(min-width: 720px) 720px"><figcaption>A generated tweet containing our malicious URL...</figcaption></figure><h2 id="day-5-recommender-system">Day 5: Recommender System</h2><p>Plunging into Recommender System, we covered two forms of Recommender Systems: Simple recommender system &amp; Content-Based recommender system</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-27.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1257" height="632" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-27.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-27.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-27.png 1257w" sizes="(min-width: 720px) 720px"><figcaption>Simple Recommender System using Mathematical Formula</figcaption></figure><p>For our Data Ingestion, we utilized the Kaggle API to download our Dataset: The MovieLens Dataset</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-28.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy"><figcaption>Overview of the MovieLens Dataset</figcaption></figure><p>For our Content-Based recommender system, we covered Text Preprocessing techniques including Bag-of-Words and TF-IDF. We then briefly touched on Matrix Factorization, before moving on to Cosine Similarity.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-31.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1271" height="618" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/image-31.png 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/image-31.png 1000w, https://blog.nyp.ai/content/images/2021/09/image-31.png 1271w" sizes="(min-width: 720px) 720px"><figcaption>Bag of words with Cosine Similarity</figcaption></figure><p>Finally, we trained our Content-Based recommender system using Cosine Similarity &amp; used it to provide recommendations.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/image-32.png" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="589" height="418"><figcaption>Getting the recommendations for &quot;Guardians of the Galaxy&quot;)</figcaption></figure><h2 id="afterword">Afterword</h2><p>We&apos;d like to thank all our participants for making NYP AI Summer Camp 2021 a huge success! Not forgetting our Planning Team: Lim Jing Kai, Loy Jun Cheng, Tony Yu, Dylan Kok, Nuzul Firdaly &amp; Alex Chien. Without them, the Camp wouldn&apos;t have been as exciting as we&apos;d envisioned...</p><p>We&apos;ll continually come up with more exciting &amp; updated AI content, so do keep a lookout for our future events &#x1F440;</p><figure class="kg-card kg-image-card kg-width-wide kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/09/day5end_2.jpg" class="kg-image" alt="NYP AI Summer Camp 2021" loading="lazy" width="1909" height="891" srcset="https://blog.nyp.ai/content/images/size/w600/2021/09/day5end_2.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/09/day5end_2.jpg 1000w, https://blog.nyp.ai/content/images/size/w1600/2021/09/day5end_2.jpg 1600w, https://blog.nyp.ai/content/images/2021/09/day5end_2.jpg 1909w" sizes="(min-width: 1200px) 1200px"><figcaption>Until then~</figcaption></figure>]]></content:encoded></item><item><title><![CDATA[NYP AI Summer Camp 2021 [Pre]]]></title><description><![CDATA[We're back!🔥]]></description><link>https://blog.nyp.ai/nyp-ai-summer-camp-2021/</link><guid isPermaLink="false">611b4e5185386c3d0351d2c8</guid><category><![CDATA[Initiatives]]></category><category><![CDATA[Upcoming]]></category><dc:creator><![CDATA[Alex Chien]]></dc:creator><pubDate>Mon, 23 Aug 2021 06:50:57 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2021/08/bant.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://blog.nyp.ai/content/images/2021/08/bant.jpg" alt="NYP AI Summer Camp 2021 [Pre]"><p>NYP AI Summer Camp 2021 is the second installation of our trademark <strong>Summer Camp Series</strong>. It&apos;ll be held from 20<em>th to 24th September, 2pm - 4.30pm daily</em>. Be sure to check it out!</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/08/poster.jpg" class="kg-image" alt="NYP AI Summer Camp 2021 [Pre]" loading="lazy" width="1080" height="1080" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/poster.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/poster.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/poster.jpg 1080w" sizes="(min-width: 720px) 720px"></figure><p>We&apos;ve prepared a whole lot of exciting activities :) &#xA0;</p><p>Here are some of the activities we have in store for you ~</p><ul><li>Stock Prediction with Deep Learning LSTMs &#x1F4C8;</li><li>Face Detection with CV2 &#x1F609;</li><li>Natural Language Processing with state-of-the-art Transformer architecture &#x1F310;</li><li>Using AI to impersonate someone&apos;s tweets &#x1F608;</li><li>Deploy your Machine Learning models on your very own publicly accessible website &#x1F9F0;</li><li>Create your own Movie Recommender System using popular, relevant techniques &#x1F37F;</li></ul><h2 id="what-well-be-covering">What we&apos;ll be covering...</h2><h3 id="day-1-computer-vision-techniques">Day 1: Computer Vision Techniques</h3><p>After this, you&apos;ll be able to create your own Object Detection algorithm for just about anything (Fruits.. People...etc.). You&apos;ll also see how your camera can recognize your face, how images are broken down by machines, and how to deploy your personal projects to the browser. </p><p> You&apos;ll gain insights on Image Processing - how machines are able to break down images into number sequences. &#xA0;Subsequently, you&apos;ll train an Image Classification Algorithm right from your browser and camera.</p><p>Additionally, we&apos;ll be covering the OpenCV library and using its built-in Object Detection Algorithms for face detection. At the end, you will have built your very own Object Detection algorithm, deployed on the web.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/WhatsApp-Image-2021-08-17-at-14.41.42.jpeg" class="kg-image" alt="NYP AI Summer Camp 2021 [Pre]" loading="lazy" width="1080" height="927" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/WhatsApp-Image-2021-08-17-at-14.41.42.jpeg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/WhatsApp-Image-2021-08-17-at-14.41.42.jpeg 1000w, https://blog.nyp.ai/content/images/2021/08/WhatsApp-Image-2021-08-17-at-14.41.42.jpeg 1080w" sizes="(min-width: 720px) 720px"><figcaption>Need an Object Detection algorithm? Say no more...</figcaption></figure><h3 id="day-2-natural-language-processing">Day 2: Natural Language Processing</h3><p>Dive into the domain of Natural Language Processing: Linguistic interactions between man and machine. After this, you&apos;ll understand how a Chatbot works, visualize how Computers understand languages and meddle with some of the most popular applications of NLP. </p><p>We&apos;ll touch on the core Language Preprocessing techniques: Stemming &amp; Tokenization. </p><p>Utilize state-of-the-art NLP models using the <em>Transformers </em>Library. You&apos;ll learn how to do Text Summarization, Text Generation and Named Entity Recognition. </p><p>We&apos;ll also be covering how Machine Learning algorithms understand words - through <em>Word Embeddings</em>.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/emb.jpg" class="kg-image" alt="NYP AI Summer Camp 2021 [Pre]" loading="lazy" width="1305" height="901" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/emb.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/emb.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/emb.jpg 1305w" sizes="(min-width: 720px) 720px"><figcaption>Visualizing Word Embeddings</figcaption></figure><h3 id="day-3-time-series">Day 3: Time Series</h3><p>Learn how to leverage Machine Learning for Sequential Data. After this, you&apos;ll be able to write code to work on sequential information, from Text generation, Sentiment Analysis, and yes, Stock Price prediction.</p><p>Learn about Deep Learning pipelines using the Tensorflow library. You&apos;ll delve into creating your own Neural Network Architecture, compiling your first Deep Learning Model and training it on your own data. </p><p>We&apos;ll touch on preprocessing techniques for sequential data, including N-grams and Scaling. By the end of this, you&apos;ll have trained your own Stock Price prediction algorithm with the stock of your choosing, with the latest data obtained from Yahoo Finance. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/pred.jpg" class="kg-image" alt="NYP AI Summer Camp 2021 [Pre]" loading="lazy" width="420" height="270"><figcaption>Stock Price Prediction with LSTMs</figcaption></figure><h3 id="day-4-evil-ai">Day 4: Evil AI</h3><p>AI is a double-edged sword. Learn how AI can be used to commit malicious activities, and how to recognize them. After this, you&apos;ll never look at your emails the same way again.</p><p>You&apos;ll learn how to impersonate someone&apos;s tweets: Through generating text with a similar linguistic style using Markov Chains. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/b.gif" class="kg-image" alt="NYP AI Summer Camp 2021 [Pre]" loading="lazy" width="280" height="158"><figcaption>&#x1F60F;</figcaption></figure><h3 id="day-5-recommender-systems">Day 5: Recommender Systems</h3><p>Delve into the technologies used by tech companies. Ever wondered how Youtube videos uncannily pop up in your feed? Interested in finding out how Movie recommendations work? After this, you&apos;ll know about the different types of recommender systems and implement one on your own.</p><p>You&apos;ll learn how to create a content-based recommender system using Cosine Similarity and Matrix Factorization. You&apos;ll also meddle with Text Preprocessing techniques, primarily TF-IDF.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/net.jpg" class="kg-image" alt="NYP AI Summer Camp 2021 [Pre]" loading="lazy" width="1280" height="720" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/net.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/net.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/net.jpg 1280w" sizes="(min-width: 720px) 720px"><figcaption>Making recommendations...</figcaption></figure><h2 id="im-sold-now-what">I&apos;m sold, now what...</h2><p>Come sign up for our event: <strong><a href="https://forms.gle/xPMMhAanxnzha7jw6?ref=blog.nyp.ai">https://forms.gle/xPMMhAanxnzha7jw6</a></strong></p><p>See you there ~</p>]]></content:encoded></item><item><title><![CDATA[Kickstart: AI 2021]]></title><description><![CDATA[Ready to kickstart your AI Journey?]]></description><link>https://blog.nyp.ai/kickstart-ai/</link><guid isPermaLink="false">611b1a3b85386c3d0351d136</guid><category><![CDATA[Events]]></category><category><![CDATA[Initiatives]]></category><category><![CDATA[Past]]></category><dc:creator><![CDATA[Alex Chien]]></dc:creator><pubDate>Sat, 26 Jun 2021 01:00:00 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2021/08/ks-1.jpg" medium="image"/><content:encoded><![CDATA[<figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="Kickstart: AI 2021"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">NYP-AI</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/a24f0ae3d6e2bf553b3bd00eedebcd960c993b635a944a52e580454d213f37e1/NYP-AI/Learning-Materials" alt="Kickstart: AI 2021"></div></a></figure><img src="https://blog.nyp.ai/content/images/2021/08/ks-1.jpg" alt="Kickstart: AI 2021"><p>Ever wanted to get into the AI field, but didn&apos;t know where to start? </p><p>NYP AI has got you covered! Kickstart: AI is an initiative by NYP AI, a 2-day programme teaching introductory Machine Learning code and concepts to participants. &#xA0;Our event was held across two days, from 21st - 22nd June 2021. </p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/08/Kickstart_AI_2021-1.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy" width="2000" height="2000" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/Kickstart_AI_2021-1.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/Kickstart_AI_2021-1.jpg 1000w, https://blog.nyp.ai/content/images/size/w1600/2021/08/Kickstart_AI_2021-1.jpg 1600w, https://blog.nyp.ai/content/images/size/w2400/2021/08/Kickstart_AI_2021-1.jpg 2400w" sizes="(min-width: 720px) 720px"></figure><hr><h1 id="day-1-ml-concepts-libraries">Day 1: ML Concepts &amp; Libraries</h1><p>To kick things off, we covered key concepts related to supervised learning, terminologies and real-life applications.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/08/term.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy" width="1181" height="660" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/term.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/term.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/term.jpg 1181w" sizes="(min-width: 720px) 720px"></figure><p>This was followed by an introduction to the core datatypes of Machine Learning - Pandas Dataframes and Numpy Arrays. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/np.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy" width="1182" height="662" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/np.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/np.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/np.jpg 1182w" sizes="(min-width: 720px) 720px"><figcaption>Grasping core NumPy concepts</figcaption></figure><p>With a clear overview of Supervised Learning and datatypes, we moved on to the modelling stage. In line with our vision to push for <em>Explainable AI, </em>we went down to the essence of Linear Regression - down to the math. This removes the &quot;Black-box&quot; element of Machine Learning algorithms. Understanding how Machine Learning algorithms work helps in understanding their strengths and limitations. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/ex.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy" width="1182" height="662" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/ex.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/ex.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/ex.jpg 1182w" sizes="(min-width: 720px) 720px"><figcaption>It all boils down to mathematics...</figcaption></figure><p>At the end of Day 1, our participants walked away with fresh insights on the Machine Learning landscape, together with a Housing Price Prediction algorithm to showcase their new skillsets.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/imp.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy" width="1259" height="704" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/imp.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/imp.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/imp.jpg 1259w" sizes="(min-width: 720px) 720px"><figcaption>3 lines...??</figcaption></figure><hr><h1 id="day-2-ml-pipelines">Day 2: ML Pipelines</h1><p>What good does ML do if we can&apos;t apply it properly? That&apos;s what we served to explain on Day 2. Covering popular approaches to Machine Learning projects, we set forth equipping our participants with the right ML techniques and strategies.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/08/cm.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy" width="1279" height="704" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/cm.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/cm.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/cm.jpg 1279w" sizes="(min-width: 720px) 720px"></figure><p>We covered the core Data Pipelines, namely: Data Ingestion, Data Exploration, Data Cleaning, and Feature Enginering.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/epk-1.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy" width="1278" height="712" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/epk-1.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/epk-1.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/epk-1.jpg 1278w" sizes="(min-width: 720px) 720px"><figcaption>Data Exploration with Pandas Dataframes</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/ohe.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy"><figcaption>One Hot Encoding for categorical values</figcaption></figure><p>This was followed by core Modelling Pipelines: Data Splitting, Model Training, Model Evaluation and Hyperparameter Tuning.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/ds.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy" width="1277" height="705" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/ds.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/ds.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/ds.jpg 1277w" sizes="(min-width: 720px) 720px"><figcaption>Splitting into Training and Validation sets</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/lr.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy"><figcaption>Logistic Regression classification algorithm</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/over-1.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy" width="1280" height="717" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/over-1.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/over-1.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/over-1.jpg 1280w" sizes="(min-width: 720px) 720px"><figcaption>NvrOverfit and NvrUnderfit......</figcaption></figure><p>With a coherent and comprehensive code walkthrough, our participants were able to consolidate their knowledge.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/nb.jpg" class="kg-image" alt="Kickstart: AI 2021" loading="lazy"><figcaption>Our notebook for Day 2</figcaption></figure><hr><h1 id="till-the-next-time">Till the next Time ~</h1><p>The team at NYP AI is glad that many participants have gained much knowledge on Machine Learning. We&apos;d like to thank all participants for the overwhelmingly positive feedback and insightful suggestions &#x1F917;. Do keep a lookout on our socials <a href="https://www.instagram.com/nyp_ai/?ref=blog.nyp.ai">https://www.instagram.com/nyp_ai/</a> for updates on our latest events :) </p>]]></content:encoded></item><item><title><![CDATA[Intro to Unsupervised Learning: 2021]]></title><description><![CDATA[Diving into Clustering and Unsupervised Learning....]]></description><link>https://blog.nyp.ai/intro-to-supervised-learning-2021/</link><guid isPermaLink="false">611b0eac85386c3d0351d0a8</guid><category><![CDATA[Events]]></category><category><![CDATA[Past]]></category><dc:creator><![CDATA[Alex Chien]]></dc:creator><pubDate>Sun, 09 May 2021 01:00:00 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2021/08/Intro-to-Unsupervised-Learning.jpg" medium="image"/><content:encoded><![CDATA[<figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="Intro to Unsupervised Learning: 2021"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">NYP-AI</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/a24f0ae3d6e2bf553b3bd00eedebcd960c993b635a944a52e580454d213f37e1/NYP-AI/Learning-Materials" alt="Intro to Unsupervised Learning: 2021"></div></a></figure><img src="https://blog.nyp.ai/content/images/2021/08/Intro-to-Unsupervised-Learning.jpg" alt="Intro to Unsupervised Learning: 2021"><p>NYP AI hosted its first-ever <em>Unsupervised Learning</em> event on <em>8th May 2021</em>. Armed with detailed slides and concise code, we were ready to introduce a new Machine Learning paradigm to our members, through two of its more popular applications: <strong>Clustering </strong>and <strong>Dimensionality Reduction</strong></p><p>To start off, we cleared all misconceptions regarding Supervised vs Unsupervised learning. This involved providing side-by-side comparisons of their definitions, algorithms and applications. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/fir.jpg" class="kg-image" alt="Intro to Unsupervised Learning: 2021" loading="lazy" width="1289" height="729" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/fir.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/fir.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/fir.jpg 1289w" sizes="(min-width: 720px) 720px"><figcaption>They look very similar, don&apos;t they....</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/d.jpg" class="kg-image" alt="Intro to Unsupervised Learning: 2021" loading="lazy" width="1290" height="725" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/d.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/d.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/d.jpg 1290w" sizes="(min-width: 720px) 720px"><figcaption>Ever wondered what &quot;Dimensionality&quot; meant? We got that covered too...</figcaption></figure><hr><h2 id="clustering-k-means">Clustering: K-Means</h2><p>Moving on to our first Algorithm of the day: Clustering with K-Means. With clear diagrams to aid our members&apos; understanding, we were able to get the point across quickly.</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/08/km.jpg" class="kg-image" alt="Intro to Unsupervised Learning: 2021" loading="lazy" width="1286" height="726" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/km.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/km.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/km.jpg 1286w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/cen.jpg" class="kg-image" alt="Intro to Unsupervised Learning: 2021" loading="lazy" width="1289" height="726" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/cen.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/cen.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/cen.jpg 1289w" sizes="(min-width: 720px) 720px"><figcaption>Cen...cen what?</figcaption></figure><p>Unsure of how many clusters to initialize? We got that covered too :)</p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/08/ks.jpg" class="kg-image" alt="Intro to Unsupervised Learning: 2021" loading="lazy" width="1284" height="716" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/ks.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/ks.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/ks.jpg 1284w" sizes="(min-width: 720px) 720px"></figure><hr><h2 id="dimensionality-reduction-pca">Dimensionality Reduction: PCA</h2><p>Moving on to a slightly more difficult concept - Dimensionality Reduction with PCA. Notwithstanding the tough visualizations required to understand, we were able to paint a clear picture using simple diagrams. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/pca.jpg" class="kg-image" alt="Intro to Unsupervised Learning: 2021" loading="lazy" width="1282" height="721" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/pca.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/pca.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/pca.jpg 1282w" sizes="(min-width: 720px) 720px"><figcaption>Easy visualizations...right?</figcaption></figure><p>What better way to understand something than to apply it &#x1F937;.... To end off our theory sessions, we implemented these exact algorithms in code. Having physically implemented these algorithms, our participants were now confident in using them for their own datasets.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/cd.jpg" class="kg-image" alt="Intro to Unsupervised Learning: 2021" loading="lazy" width="1217" height="687" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/cd.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/cd.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/cd.jpg 1217w" sizes="(min-width: 720px) 720px"><figcaption>Code for K-Means Clustering</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/ee.jpg" class="kg-image" alt="Intro to Unsupervised Learning: 2021" loading="lazy"><figcaption>Code for PCA Dimensionality Reduction</figcaption></figure><hr><h2 id="till-then">Till then ~</h2><p>Not as hard as it seemed, eh? Hoped everyone managed to learn something from today&apos;s session. Until then ~ &#x1F60A;</p>]]></content:encoded></item><item><title><![CDATA[NYP AI Computer Vision Camp 2021]]></title><description><![CDATA[Diving deep into the domain of Computer Vision and Machine Learning 👀]]></description><link>https://blog.nyp.ai/nyp-ai-computer-vision-camp-2020/</link><guid isPermaLink="false">611b278685386c3d0351d222</guid><category><![CDATA[Events]]></category><category><![CDATA[Past]]></category><dc:creator><![CDATA[Alex Chien]]></dc:creator><pubDate>Sat, 09 Jan 2021 03:40:00 GMT</pubDate><media:content url="https://blog.nyp.ai/content/images/2021/09/SUMMER-CAMP-SEries.jpg" medium="image"/><content:encoded><![CDATA[<figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://github.com/NYP-AI/Learning-Materials?ref=blog.nyp.ai"><div class="kg-bookmark-content"><div class="kg-bookmark-title">GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-description">A Public Repository containing all of NYP AI&#x2019;s past event materials - GitHub - NYP-AI/Learning-Materials: A Public Repository containing all of NYP AI&#x2019;s past event materials</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://github.com/fluidicon.png" alt="NYP AI Computer Vision Camp 2021"><span class="kg-bookmark-author">GitHub</span><span class="kg-bookmark-publisher">NYP-AI</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://opengraph.githubassets.com/a24f0ae3d6e2bf553b3bd00eedebcd960c993b635a944a52e580454d213f37e1/NYP-AI/Learning-Materials" alt="NYP AI Computer Vision Camp 2021"></div></a></figure><img src="https://blog.nyp.ai/content/images/2021/09/SUMMER-CAMP-SEries.jpg" alt="NYP AI Computer Vision Camp 2021"><p>NYP AI CV Camp 2020 takes a deeper dive into the Computer Vision landscape. From Image Processing to Deep Learning Convolutional Neural Networks, we cover the niche aspects of Machine Learning. The camp was conducted across four days: 4th - 7th January 2021, including 2 days of learning and 2 days of assignments. </p><h2 id="day-1-image-processing">Day 1: Image Processing</h2><p>To start off the Camp, we reintroduced the already familiar concept of Supervised Learning. In the later stages of our Camp, we would be heavily focused on supervised learning modelling techniques, hence we emphasised the need for a solid understanding of the Supervised Learning paradigm. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/sl.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1257" height="652" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/sl.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/sl.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/sl.jpg 1257w" sizes="(min-width: 720px) 720px"><figcaption>Supervised Learning...</figcaption></figure><p>This was followed by a high-level overview of the Image Classification domain.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/process.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1246" height="683" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/process.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/process.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/process.jpg 1246w" sizes="(min-width: 720px) 720px"><figcaption>Steps for an Image Classification Project</figcaption></figure><p>To offer participants a code-free way to train their own image-based models, we utilized Google&apos;s Teachable Machine, which you can find here @ <a href="https://teachablemachine.withgoogle.com/?ref=blog.nyp.ai">https://teachablemachine.withgoogle.com/</a>. </p><p>Teachable Machine allows you to train your own Image Classification model, straight from your webcam. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/tm.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1245" height="691" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/tm.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/tm.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/tm.jpg 1245w" sizes="(min-width: 720px) 720px"><figcaption>Teachable Machine - Train your Image Classifier with no code required</figcaption></figure><p>Diving into the details of Image Processing, we covered Numpy Arrays for image datasets. &#xA0;</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/rgb.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1165" height="616" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/rgb.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/rgb.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/rgb.jpg 1165w" sizes="(min-width: 720px) 720px"><figcaption>All images can be &quot;broken down&quot; to Numpy Arrays</figcaption></figure><p>Participants also got to create their own image from scratch, using Numpy Arrays. </p><figure class="kg-card kg-image-card"><img src="https://blog.nyp.ai/content/images/2021/08/nb-1.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="679" height="617" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/nb-1.jpg 600w, https://blog.nyp.ai/content/images/2021/08/nb-1.jpg 679w"></figure><p>All these skills culminated in the final project of the day: Training our own Fruit Classifier. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/kag.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1224" height="669" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/kag.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/kag.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/kag.jpg 1224w" sizes="(min-width: 720px) 720px"><figcaption>Using the Kaggle API for downloading datasets</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/nb1.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1433" height="704" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/nb1.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/nb1.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/nb1.jpg 1433w" sizes="(min-width: 720px) 720px"><figcaption>Creating our own Dataset from .jpg images</figcaption></figure><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/tmp1.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy"><figcaption>Output of our Logistic Regression model :)</figcaption></figure><h2 id="day-2-convolutional-neural-networks">Day 2: Convolutional Neural Networks</h2><p>For our Second Day, we introduced state-of-the-art Machine Learning Algorithms for Images: CNNs. </p><p>By explaining the limitations of Traditional Algorithms for Images (I.e Logistic Regression), participants could see the clear benefits of utilizing CNNs. </p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/why.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1232" height="662" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/why.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/why.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/why.jpg 1232w" sizes="(min-width: 720px) 720px"><figcaption>The importance of CNNs</figcaption></figure><p>Given the <em>Black-boxed </em>nature of Deep Learning Algorithms, concise animations were used to provide a deeper level of understanding of the CNN algorithm. Namely, the concept of Convolutions and Filters were introduced.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/vis.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy"><figcaption>How convolution operations work</figcaption></figure><p>As CNNs allow us to work with 3 Dimensional, coloured images, our preprocessing steps would slightly differ from Day 1.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/prep.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1236" height="661" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/prep.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/prep.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/prep.jpg 1236w" sizes="(min-width: 720px) 720px"><figcaption>We don&apos;t have to grayscale and flatten our Image Arrays..</figcaption></figure><p>Moving on to the more exciting aspects of Day 2 - Actual modelling using Tensorflow&apos;s Sequential API</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/tcode.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1207" height="616" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/tcode.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/tcode.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/tcode.jpg 1207w" sizes="(min-width: 720px) 720px"><figcaption>Training our model within a single line</figcaption></figure><p>The results of our Algorithm were extremely accurate - A gigantic leap from yesterday&apos;s Logistic Regression Model.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.nyp.ai/content/images/2021/08/outp.jpg" class="kg-image" alt="NYP AI Computer Vision Camp 2021" loading="lazy" width="1353" height="785" srcset="https://blog.nyp.ai/content/images/size/w600/2021/08/outp.jpg 600w, https://blog.nyp.ai/content/images/size/w1000/2021/08/outp.jpg 1000w, https://blog.nyp.ai/content/images/2021/08/outp.jpg 1353w" sizes="(min-width: 720px) 720px"><figcaption>Clearly, CNNs are the winner for Image Classification tasks</figcaption></figure><h2 id="moving-forward">Moving Forward</h2><p>We really had a blast teaching our members new ML techniques, particularly dabbling with Deep Learning Algorithms. We&apos;ll be back with even more awesome content in the future&#x1F91E;. Until then! ~</p>]]></content:encoded></item></channel></rss>