<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Y3 S1 notes by Celine Chan</title>
      <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2024-04-17 05:42:36 UTC</pubDate>
      <lastBuildDate>2024-08-14 04:02:10 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/1f390.png</url>
      </image>
      <item>
         <title>CH1</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2958022212</link>
         <description><![CDATA[<p>-- evaluation of telecommunication generations --</p><ul><li><p>5G trends are driven by apps and services needed globally</p></li></ul><p>1G --&gt; Analog voice calls</p><p>2G --&gt; Digital voice and text SMS (short message service)</p><p>3G --&gt; SMS, MMS (multimedia service), web &amp; emails, increased transfer rate, bandwidth (transfer capacity), features &amp; coverage</p><p>4G --&gt;  IP enabled, mobile broadband (MBB high-speed internet access), fast mobile data transport smartphones with Social Media</p><p>5G --&gt; eMBB (enhanced MBB increase bandwidth decreased latency), IOT, AI, AR, VR, Cloud, more reliable and capacity-rich</p><p><br/></p><p>-- 5G Areas --</p><ul><li><p>3 key areas 4 faster &amp; better mobile connectivity</p><ol><li><p>eMBB --&gt; Enhanced Mobile Broadband (first phase)</p></li><li><p>mMTC --&gt; Massive Machine Type Communication (second phase)</p></li><li><p>URLLC --&gt; Ultra-Reliable and Low Latency Communication (second phase)</p></li></ol></li><li><p>4 usage scenarios</p><ol><li><p>mobile broadband mobility &amp; high data rate (eMBB)</p></li><li><p>Dense user crowds high capacity &amp; high data rate (eMBB)</p></li><li><p>IOT sensor network high volume of devices &amp; battery life, moderate bandwidth (mMTC 4 smart city)</p></li><li><p>IOT control network for low latency &amp;high reliability (URLLC 4 self-driving vehicles)</p></li></ol></li><li><p>3GPP --&gt; 3 Gen Partnership proj refering to standards organisation 4 global mobile tech</p></li><li><p>ITU-R (International Union Radio communication sector) regulates international radio freq &amp; satellite resources and green lit IMT-2020 (5G research international mobile telecommunications)</p></li></ul><p>-- AIOT --</p><ul><li><p>interconnection, via the internet, of computing devices embedded in everyday objects enabling them to send and receive data. We follow the 6 C’s of IoT in order to conceive the IoT system. The 6 C’s are:</p></li><li><p>Collect - collection of data</p></li><li><p>Communicate - wireless (or wired) communication technologies</p></li><li><p>Connect - network connection, usually through the telco’s WAN infrastructure, with the use of switches and routers</p></li><li><p>Cloud - computing resources such as storage and server applications residing in AWS (Amazon Web Services), (Microsoft’s)Azure, Google Cloud etc.</p></li><li><p>Comprehend - data analytics to make sense of the data</p></li><li><p>Create - value creation through mobile apps </p><p><br/></p></li></ul><p>-- 5G Characteristics -- </p><p><br/></p><p><br/></p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-17 05:43:35 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2958022212</guid>
      </item>
      <item>
         <title>CH2 - py intro </title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2958022599</link>
         <description><![CDATA[<p>-- Notes -- </p><p>Syntax</p><ul><li><p>// floor division resulting in int of x/y no rounding</p></li><li><p>% modulo returns int remainder of division&nbsp;</p></li><li><p>indentation&nbsp;- shows relationship</p></li><li><p>string.title() --&gt; first letter in each word upper case</p></li></ul><p>Data types (py cannot mix data types)</p><ul><li><p>int</p></li><li><p>string</p></li><li><p>float</p></li><li><p>None - empty</p></li><li><p>Structured data --&gt; tabled</p></li><li><p>Unstructured data --&gt; like video etc</p></li><li><p>boolean</p></li><li><p>check using type()</p></li><li><p>implicit conversion --&gt; auto convert 1 data type into another (into float)</p></li><li><p>explicit conversion --&gt; manual convert from one data type to another str(), int()</p></li></ul><p>Functions (combines calls to function making code reuseable)</p><ul><li><p>print(), len(),&nbsp;</p></li><li><p>def functionName(parameters):</p></li></ul><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;body</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return value, x</p><ul><li><p>value, x = functionName(parameters)</p></li><li><p>function exits once it reaches a return statement in branch</p></li></ul><p>Style</p><ul><li><p>good style like human language easier to understand and maintain</p></li><li><p>readable, less errors during updating more straight forward&nbsp;</p></li><li><p>self-documenting code --&gt; written in a way that's readable and doesn't conceal it's intent&nbsp;</p></li><li><p>refactoring a code to be self documenting to reflect code's purpose with good naming and comments</p></li><li><p>#after this is comment</p></li></ul><p>Comparison (returns a Boolean)</p><ul><li><p>cannot compare amt &lt; &gt;int str types error</p></li><li><p>== and != Can compare types</p></li><li><p>true and true = true</p></li><li><p>true or false = false</p></li><li><p>not flip Boolean result</p></li></ul><p>Branching --&gt; the ability of a program to alter its executing sequence (different decisions based on guidelines)</p><ul><li><p>if condition: body (carried out if condition met / is true)</p></li><li><p>if, elif (checks only if false elif true), else (all else false)</p></li></ul><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-17 05:43:55 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2958022599</guid>
      </item>
      <item>
         <title>CH1</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2959578070</link>
         <description><![CDATA[<p>lab - 7 segment (Don't care put 0) &amp; </p><p>ARM Cortex A72: many resources, short development cycle, increases in processing power</p><p><br/></p><p>-- Embedded systems --</p><ul><li><p>Input &gt; Process &gt; Output </p></li></ul><ol><li><p>Fixed purpose, specialised computers</p></li><li><p>Smaller size physically, part of a larger system</p></li><li><p>Limited memory (little Ram program stored in ROM)</p></li><li><p>Failure tolerance (no hang has control of wonky environment)</p></li><li><p>Real time control (operation processing dependent on speed with complex cal or human interactions)</p></li><li><p>Guaranteed response time (requests to device fast when multitasking)</p></li><li><p>Reliability</p></li><li><p>Simple I/O</p></li><li><p>low power consumption</p></li><li><p>low cost</p></li></ol><p><br/></p><p>-- Organisation -- </p><ol><li><p>CPU</p><ul><li><p>processes data/instruction</p></li><li><p>responds request</p></li></ul></li><li><p>Memory</p><ul><li><p>RAM: Random Access Memory, changing running program data, volatile (no power gone)</p></li><li><p>ROM: Read Only Memory, fixed data, non-volatile (no power not gone)</p></li></ul></li><li><p>I/O: external input (start processing) and output (display result)</p></li><li><p>Buses</p><ul><li><p>Address: memory location being accessed (unidirectional, memory capacity = 2 ^ [no. of lines] ) </p></li><li><p>Data: transfer data (bidirectional,  1 line = 1 bit = 1 memory word size)</p></li><li><p>Control: synchronize transfer data (bidirectional, no. of lines affects control, interrupt and transfer rate)</p></li></ul></li></ol><p><br/></p><p>-- Hardware considerations --</p><ul><li><p>Interrupts --&gt; only operate when triggered (ISR Interrupt Service Routine)</p></li><li><p>Hardware Timers</p><ol><li><p>Software delay loops (pro: simple, cons: processor occupied, no multitasking, inaccurate execution varies)</p></li><li><p>Hardware timer chips external to CPU (set value to timer, count up/down to interrupt, accurate)</p></li></ol></li><li><p>Direct Memory Access --&gt; DMA </p><ol><li><p>memory and I/O data transfer without CPU, frees CPU to process other things)</p></li></ol></li><li><p>Power Management</p><ol><li><p>Programming --&gt; code executes fast &amp; low power mode (main loop others ISR)</p></li><li><p>Power supply --&gt; low drop out voltage regulators (soft), SMPS Switch Mode Power Supplies (loud), alt power</p></li><li><p>Processor --&gt; different operating frequencies / voltages for sleep mode</p></li></ol></li></ul><p><br/></p><p>-- Benefits of embedded sys --</p><ol><li><p>Computing power increase --&gt; connectivity of devices</p><ul><li><p>media processing</p></li><li><p>floating point data</p></li><li><p>sophisticated algorithms (e.g fuzzy logic, neural networks)</p></li><li><p>real-time processing (speed)</p></li></ul></li><li><p>IOT --&gt; users data and analytics of future trends</p></li><li><p>self powered --&gt; conserve energy</p></li></ol><p><br/></p><p>-- Increase Performance --</p><ul><li><p>Architecture design: pipeline, parallel, hardware optimization</p></li><li><p>increase clk freq increase processing speed</p></li><li><p>increase address or data bus size (in increments of 8)</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-18 03:24:07 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2959578070</guid>
      </item>
      <item>
         <title>CH1 Intro to AI</title>
         <author></author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2961634743</link>
         <description><![CDATA[<p>There are 7 principles of AI:</p><ol><li><p>it needs to be socially beneficial</p></li><li><p>avoid creating unfair bias with sensitive characteristics such as gender, race, income, religion etc</p></li><li><p>build and test for safety -&gt; avoid results that create risks</p></li><li><p>incorporate privacy design principles such as consent and with privacy safeguards &amp; transparency</p></li><li><p>accountable to people -&gt; provide appropriate opportunities for feedback, explanations &amp; appeal</p></li><li><p>hold high standards for scientific excellence</p></li><li><p>be available for uses that accord with principles -&gt; limit possible harmful or abusive applications and uses</p></li></ol><p><br></p><p>google cloud infrastructure consists of 3 layers with Network &amp; Security (support) being the base, Compute and Storage (separated to scale independently based on need), and Data &amp; AI products (perform task to ingest, store, process &amp; deliver business insights, data pipelines &amp; ML models)</p><p><br></p><p>middle layer:</p><ol><li><p>Compute</p><p>More data needs require more compute power. </p><p>Processing power: TCU (Google's custom-developed for specific uses, it is domain specific HW)</p><p>Services:</p><ul><li><p>Compute Engine (IaaS)</p><p>Compute, storage, NW, max flexibility</p></li><li><p>K8s engine</p><p>Containerized app in the cloud envir. (not on VM like CE)</p></li><li><p>App Engine (PaaS)</p><p>bind code to libraries that access to infra</p></li><li><p>Cloud Functions</p><p>execute code in response to events, severless</p></li><li><p>Cloud Run</p><p>fully managed platform that allows event-driven stateless workloads, autoscaling, and pay for what you use</p></li></ul></li></ol><p><br></p><ol start="2"><li><p>Storage</p><p>for proper scaling capabilities, compute &amp; storage are decoupled</p><p>Services:</p><ul><li><p>Cloud storage (unstructed data)</p></li><li><p>Cloud bigtable (NoSQL DB)</p></li><li><p>Cloud SQL (relational DB)</p></li><li><p>Cloud Spanner (relation DB)</p></li><li><p>Firestore (NoSQL DB)</p></li><li><p>bigQuery (unstructured data)</p></li></ul><p>Analytical workloads: involve processing large amounts of data to find patterns, trends, or insights</p><p>Transactional workloads: everyday tasks and actions, like making purchases, updating information, or handling user interactions</p></li></ol><p><br></p><p>top layer:</p><p>Data-to-AI workflow:</p><p>ingestion &amp; process -&gt; storage -&gt; analytics (BigQuery provides embedded AI features allowing direct calls to SQL commands to train model)-&gt; AI/ML</p><p><br></p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-19 08:26:28 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2961634743</guid>
      </item>
      <item>
         <title>CH1</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2964429633</link>
         <description><![CDATA[<p>-- Compiler --</p><ul><li><p>Source file <a rel="noopener noreferrer nofollow" href="http://ABC.Java">ABC.Java</a></p></li></ul><p><br/></p><p>-- Scanner input --</p><p>String name;</p><p>int age;</p><p>double gpa;</p><p>Scanner sc = new Scanner(<a rel="noopener noreferrer nofollow" href="http://System.in">System.in</a>);</p><p>name = sc.nextLine();</p><p>age = sc.nextInt();</p><p>gpa = sc.nextDouble();</p><p><br/></p><p>method overloading --&gt; diff signature call diff based on parameters durring runtime</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-22 09:41:10 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2964429633</guid>
      </item>
      <item>
         <title>CH2 practical notes</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2966015571</link>
         <description><![CDATA[<p>-- Practical --</p><ul><li><p>indentation, variables</p></li><li><p>casting --&gt; int(), str(), float()</p></li><li><p>customizing parameters: %s --&gt; holder for string, %d --&gt; holder for number</p></li></ul><p>Collection / Arrays</p><ul><li><p>list --&gt; ordered &amp; changeable --&gt; my_list = ["apple", "banana", "cherry"]</p></li><li><p>Tuple --&gt; ordered &amp; unchangeable --&gt; my_tuple = ("apple", "banana", "cherry")</p></li><li><p>Set --&gt; unordered (cannot be called by index) &amp; unchangeable --&gt; my_set = {"apple", "banana", "cherry"}</p></li><li><p>Dictionary --&gt; collection unordered, changeable, indexed key: value --&gt; my_dict = {"brand": "Ford", "model": "Mustang", "year": 1964}</p></li></ul><p>Loops</p><ul><li><p>if --&gt; true, elif --&gt; if false elif true, else --&gt; all else false</p></li><li><p>range(start, end when less than, increment value)</p></li><li><p>for x in range array: #loop through each element in array</p></li><li><p>for x in range(n): #loop through i to n-1 or n times</p></li><li><p>while, break --&gt; exits loop if true, continue --&gt; go back to start of loop skips rest of code below</p></li></ul><p>Functions</p><ul><li><p>def yanged(name):</p><p>    print(str(name)+" Yang")</p><p>    return name.upper()</p><p>x = yanged("Celine")</p><p>print(x)</p><p>x = yanged("Rachel")</p><p>print(x)</p></li></ul><p>Class</p><ul><li><p>Class --&gt; grp tgt related data and functions which act on that data</p></li><li><p>Object --&gt; unique instance of a data structure defined by its class</p></li><li><p>class HiClass: #class name declare</p><p>    me = "celine" #varible </p><p>    def say_hi(self):</p><p>        print('Hello %s, how are you?' % (self))</p><p>    def name(self):</p><p>        print('Hello %s, how are you?'% (self.me))</p><p>p = HiClass() #object p in HiClass</p><p>p.say_hi()</p><p><a rel="noopener noreferrer nofollow" href="http://p.name">p.name</a>()</p></li><li><p>call object use self.obj or p.attribute</p></li><li><p>class Dog():</p><p>    """A simple attempt to simulate a dog"""</p><p>    def <strong>init</strong> (self,name,age):</p><p>        """Initialize the name and age attributes."""</p><p>        <a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a> = name #attribute</p><p>        self.age = age</p><p>    def sit(self):</p><p>        """Simulate a dog sitting when ordered."""</p><p>        print(<a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a>.title()+" is now sitting")</p><p>    def roll_over(self):</p><p>        """Simulate a dog rolling over when ordered."""</p><p>        print(<a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a>.title()+" rolled over!")</p><p>    def info(self):</p><p>        print(<a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a> + "is %d years old!" % (self.age))</p><p>    #def testing():</p><p>        #print()</p><p># Instantiate a class.</p><p>dog = Dog ("Husky",2)</p><p>dog.sit()</p><p>dog.roll_over()</p><p><a rel="noopener noreferrer nofollow" href="http://dog.info">dog.info</a>()</p><p># dog.testing() --&gt; Type error 0 arguments but 1 self was given</p></li><li><p>Inheritance --&gt; type subtype relations between classes for code reusability</p></li><li><p>class Parent: # Define the parent class.</p><p>    parentAttr = 100</p><p>    def <strong>init</strong>(self):</p><p>        print("Invoke the parent class to construct a function.")</p><p>    def parentMethod(self):</p><p>        print('Invoke a parent class method.')</p><p>    def setAttr(self, attr):</p><p>        Parent.parentAttr = attr</p><p>    def getAttr(self):</p><p>        print("Parent attribute:", Parent.parentAttr)</p><p>class Child(Parent): # Define a child class.</p><p>    def <strong>init</strong>(self):</p><p>        print("Invoke a child class to construct a method.")</p><p>    def childMethod(self):</p><p>        print('Invoke a child method.')</p><p>c = Child() # Instantiate a child class.</p><p>c.childMethod() # Invoke the method of a child class.</p><p>c.parentMethod() # Invoke the method of a parent class.</p><p>c.setAttr(200) # Invoke the method of the parent class again to set the attribute value.</p><p>c.getAttr() # Invoke the method of the parent class again to obtain the attribute value</p></li><li><p>_privateVar --&gt; only accessible in class </p></li><li><p>publicVar</p></li></ul><p><br/></p><p>Anaconda</p><ul><li><p>integrated, install different framework --&gt; different environment</p></li><li><p>py many integrated libraries &amp; framework to save development time</p></li><li><p>Numpy --&gt; numeric computing handles vectors and matrices</p></li><li><p>Pandas --&gt; data manipulation data structures and tools of analysis</p><ol><li><p>grouping data</p></li><li><p>combining data</p></li><li><p>filtering</p></li><li><p>time-series</p></li><li><p>re-indexing</p></li><li><p>iteration</p></li><li><p>Sorting</p></li><li><p>Aggregation</p></li><li><p>Concatenation</p></li><li><p>Visualization</p></li></ol></li><li><p>PIP --&gt; py libraries: tool for installing PyPI python packages</p></li><li><p>Conda --&gt; package manager: open source package management system and environment management system quickly installs, runs and updates packages and their dependencies and switches between environments on your local computer.</p></li></ul><p>Anaconda PowerShell</p><ul><li><p>conda search packageName --&gt; see specific package</p></li><li><p>conda list --&gt; see installed packages</p></li><li><p>conda install numpy --&gt; installs numpy or speciic version numpy=1.16.5</p></li><li><p>conda remove numpy --&gt; remove package in current environment</p></li><li><p>conda create -n my_env numpy --&gt; create environment with numpy installed</p></li><li><p>conda create -n my_env python=3.3 --&gt; create environment with py 3.3</p></li><li><p>conda activate env_name --&gt; active environment before start of use</p></li><li><p>conda deactive --&gt; deactivate current environment</p></li><li><p>conda env list --&gt; list all virtual envirnments</p></li><li><p>jupyter notebook --&gt; start new notebook open web pg</p></li></ul><p><br/></p><p>-- Numpy --</p><ul><li><p>import numpy as np</p></li><li><p>arr = np.array([]) --&gt; type(arr) is numpy.ndarray --&gt; N-directional array</p></li><li><p>one_d_array.ndim --&gt; shows number of dimensions of an array</p></li><li><p>one_d_array.size --&gt; shows length of array</p></li><li><p>np.arange(10) --&gt; array with sequence 0-9 with len 10, step 1 </p><p>np.arange(1,10) --&gt; np.arrange(start, end) array with start to end -1, step 1</p><p>np.arange(1,10,2) --&gt; np.arrange(start,end,step)</p></li><li><p>np.arange(10).reshape(2,5) --&gt; one dimentional array to 2 dimensional</p><p>np.arange(10).reshape(2,5).ravel() --&gt; flatten</p></li><li><p>a.shape) --&gt; returns tuple of array length per axis 1D:(no. of elements,) &amp; 2D:(no. of row, no. )</p></li><li><p>Indexing: </p><p>rank 1 --&gt; arrayName[index]</p><p>rank 2 --&gt; arrayName[row, col]</p></li><li><p>: --&gt; colon is a from index to one item before operator</p><p>print(data[:]) --&gt; prints start to end</p><p>print(data[1:5]) --&gt; prints element 1 to 4</p></li><li><p>Slicing array using colon is a from index to one item before operator</p><p>data[:,:-1] --&gt; selects all rows (<strong>:</strong>) and all columns except the last one (<strong>:-1</strong>). It extracts the features from each row</p><p>data[:,-1] --&gt; selects all rows (<strong>:</strong>) and only the last column (<strong>-1</strong>). It extracts the target variable from each row</p><p>data[:,1] --&gt; all rows first col</p><p>data[:,:1] --&gt; all rows all col before col 1\</p><p>data[:2,:] --&gt; rows before row 2, all col</p></li><li><p>Array stacking --&gt; joining arrays along existing axis</p><p>np.vstack([a,b]) --&gt; vertical stack no. of col same</p><p>np.hstack([a,b]) --&gt; horizontal stack no.of rows same</p></li><li><p>Matrixes made of list of lists e.g.</p><p>m = np.array([[1,2,3],[4,5,6],[7,8,9]])</p><p>n = m[1][2] --&gt; indexing row 1's index 2</p></li><li><p><a rel="noopener noreferrer nofollow" href="http://np.dot">np.dot</a>(a,b) --&gt; matrix Multiplication --&gt; first matrix a row and next matrix b col must be same </p></li></ul><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-23 07:24:32 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2966015571</guid>
      </item>
      <item>
         <title>CH2 5G networking</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2966126961</link>
         <description><![CDATA[<p>-- 5G fundamentals --</p><ul><li><p>1 base tower at a time for users, cell transfer users between radio towers when they move to the next area, lose cell when in areas with weak signal / transfer too slow</p></li><li><p>bandwidth is capacity of people using it</p></li><li><p>MIMO increases capacity by increasing antennas on receiver and transmitter antennas</p></li><li><p>frequency = periods / second</p></li></ul><p><br></p><p>-- Network architecture &amp; components --</p><ul><li><p>5G Stand Alone Network / SA 5G --&gt; cellular infrastructure built to service 5G through protocols in radio network &amp; controller core</p></li><li><p>low latency connectivity great progress for wireless</p></li><li><p>supports mission-critical communication, high-speed MBB</p></li><li><p>system main parts</p><ol><li><p>5G UE (user equipment) --&gt; smartphones, computers, etc</p><ul><li><p><br></p></li></ul></li><li><p>RAN (radio access network) --&gt; handles radio related tasks</p><ul><li><p>GNB = CU (central unit can be placed in the cloud) + DU</p></li><li><p>Control data transmission and radio access</p></li><li><p>DU: lower-level RF processing and data plane processing are the purview of the</p></li><li><p>CU: higher-level operations and control plane signalling are handled by the CU</p></li></ul></li><li><p>CN (core network) --&gt;session management &amp; mobility</p><ul><li><p>AMF (Access and Mobility Function): managing the access and mobility aspects of UE certificates</p></li><li><p>UPF (User Plane Function): supports features and capabilities to facilitate user plane operation. Examples include: packet forwarding and routing, interconnection to the Data Network (DN), policy enforcement and data buffering</p></li></ul></li><li><p>DN (data network) --&gt; establishes connections with other networks e.g. internet</p><ul><li><p><br></p></li></ul></li></ol></li><li><p>Architecture parts</p><ol><li><p>gNodeB (GNB / next gen node B) --&gt; </p></li><li><p>Access &amp; Mobility Function (AMF) --&gt; </p></li><li><p>User Plane Function (UPF) --&gt;</p></li><li><p>Session Management Function (SMF) --&gt;</p></li><li><p>Authentication Server Function (AUSF) --&gt; </p></li><li><p>Unified Data Management (UDM) --&gt;</p></li><li><p>Policy Control Function (PCF) --&gt; handovers and smooth transition</p></li><li><p>Application Function (AF) --&gt; interface</p></li><li><p><br></p></li><li><p>CU (central unit) + DU (distribute unit)</p></li></ol></li><li><p><br></p></li><li><p><br></p></li></ul><p><br></p><p>-- Spectrum &amp; frequency bands --</p><ul><li><p>sub 6 means below fz 6</p></li></ul><p><br></p><p>-- Radio Access Technology (RAT) --</p><ul><li><p>OFDM (Orthogonal Frequency Division Multiplexing): sub carriers simultaneously transmit data through OFDM modulation (convert data to electrical signals improving spectral efficiency and mitigates effects of multipath interference)</p></li><li><p>MIMO (Multi-Input Multi-Output): improve communication performance, numerous antennas at transmitter and receiver ends boost spectral efficiency, data throughput and network capacity</p></li><li><p>Beamforming: concentrating radio waves in direction, narrow beams improve signal coverage and quality, lower interference uplink and down link, stronger</p></li><li><p>DSS (Dynamic Spectrum Sharing): distributing spectrum rescores dynamically to coesits with existing 5G-LITE for seamless transition to 5G</p></li><li><p>mmWave (milimeterWave): high frequency above 24GHz used to deliever ultra high data rates, limmited coverage and blocked by obstacles,large bandwidth and capacity, fast</p></li></ul><p>-- Core network &amp; Services --</p><ul><li><p>scalability cloud native and cloud network</p></li><li><p>SDN - software defined networking: programmability and automation, real time response efficency and responsiveness</p></li><li><p>NFV - Network Functions Virtualization: minimizes hardware dependency, improve resource ultlisation, speed up deployment</p></li><li><p>O&amp;M - opperations and mantainence: admin cloud streamlines opperations provisioning and configuration</p></li><li><p> Edge cloud: integration ofcloudd capabilities at network edge @ end users lowers latency boost performance</p></li><li><p>Regional Cloud &amp; core cloud: hierical cloud deployment approaches. RC (goegraphic location only to relieve traffic on edge), CC (centralised control management, optimising resources and services and avalibility decrease latency)</p></li></ul><p>-- 5G Service Oriented Core (SOC) --</p><ul><li><p>flexible architecture</p></li><li><p>programability</p></li><li><p>smart pipes (transfers data securely, quality management, deep packet inspection)</p></li><li><p>Control &amp; User Plane Separation (CUPS): sepperates userplane data transfer and control plane network and signaling</p></li><li><p>Serviced based architecture (SBA): network as service to be reused ad agile</p></li><li><p>Network slicing: several networks tbcreated on singale infrastructure for URLLC, mMTC, eMBB</p></li><li><p>Native Cloud: microservices &amp; VENV &amp; containerisation</p></li><li><p><br></p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-23 08:47:35 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2966126961</guid>
      </item>
      <item>
         <title>CH2 - math API &amp; Arrays</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2967192066</link>
         <description><![CDATA[<p>-- Math functions --</p><ul><li><p>ierih</p></li></ul><p><br/></p><p>-- Arrays --</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-24 01:01:41 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2967192066</guid>
      </item>
      <item>
         <title>CH2 - Bus sys &amp; devices</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2968094180</link>
         <description><![CDATA[<p>-- Practical --</p><p>breakpoints, functions, debugging, header files</p><p><br/></p><p>-- ARM Hardware Architecture --</p><ul><li><p>ARM processors --&gt; Advanced RISC (Reduced Instruction Set Computer) Machine</p></li><li><p>Raspberry Pi (Rpi) ARM cortex A manufactured by Broadcom (</p><ol><li><p>benefits: small size &amp; runs op sys e.g. Linux &amp; low cost</p></li><li><p>note: cortex A = application, R = real time high performance, M = micro-controller</p></li></ol></li><li><p>Rpi parts</p><ol><li><p>ARM processor (CPU + on-chip GPU)</p></li><li><p>RAM</p></li><li><p>HDMI x2</p></li><li><p>USB ports x4</p></li><li><p>Ethernet</p></li><li><p>can add modules with carrier board through surface pins</p></li></ol></li><li><p>Industrial --&gt; compute Module 3 (CM3) ARMv8-A</p><ol><li><p>benefit: custom more peripherals, form factor, flexible easy update replace on board</p></li><li><p>parts: GPU, Memory, Timers, DMA, Interrupt Controllers, GPIO, USB, PCM, Serial Communication (I2C, PWM, UART)</p></li></ol></li><li><p>SoC --&gt; System on chip</p></li><li><p>bus architecture based on AMBA --&gt; Advanced Microcontroller Bus Architecture</p></li><li><p>allows interface to external devices</p></li><li><p>e.g. AXI --&gt; Advanced extendable Interface for flash memory NAND type</p></li><li><p>NAND type Broadcom type SMI --&gt; secondary Memory Interface requires</p><ul><li><p>smaller number of address pins</p></li><li><p>6 requisite control pins</p></li><li><p>"8080", "6800" simple, modest hardware</p></li></ul></li><li><p>8080 mode bus</p><ul><li><p>16 bit address bus</p></li><li><p>8 bit data bus</p></li><li><p>separate read write signals control bus</p></li><li><p>LCD &amp; flash drive 8080 mode</p></li><li><p>adr data bus size vary</p></li><li><p>control specific signal sequence</p></li></ul></li><li><p>mapped memory</p><ul><li><p>IO/M signal to differentiate mem &amp; I/O</p><ol><li><p>use interfacing device, load store move instructions or high-level assignment</p></li><li><p>input output instructions comparision </p></li></ol></li></ul></li><li><p>ROM: Non-volatile, store unchanging data, no write by processor</p><ol><li><p>EPROM --&gt; Erasable Programable ROM: erase all data stored, for testing development</p></li><li><p>PROM: data stored after manufacturing, data never changed, non-reversible, small scale production</p></li><li><p>EEPROM --&gt; Electrically Erasable PROM: parallel data rewritten easily, storing data slower than reading, updates per byte, store settings and configuration</p></li><li><p>FLASH: updates parallel data in grps of bytes, NOR gate tech to store programm for firmware updates flash chips, NAND gate sequential access of data flash devices e.g. me cards, SD, USB, CF or hard disk large data storage</p></li></ol></li><li><p>RAMs: volatile</p><ol><li><p>Static: </p></li><li><p>Dynamic: </p></li></ol></li></ul><p>-- Tutorial --</p><ul><li><p>ROM only written by manufacturer called masking</p></li><li><p>Flash device (faster e.g. hard disk ssd) = EEPROM</p></li><li><p>EEPROM = electrical erasable programable rom</p></li><li><p>CMOS same as BIOs</p></li><li><p>buffer for input</p></li><li><p>latch output</p></li><li><p>tri-state buffer input to CPU</p></li><li><p>Bi-directional buffers --&gt; data bus signal</p></li><li><p>latch regular lvl trigger, changes according to input --&gt; clocks trigger</p></li><li><p>edge trigger, changes --&gt; positive low to high, or negative high to low</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-04-24 13:07:39 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2968094180</guid>
      </item>
      <item>
         <title>CH1.1 Intro 2 AI ML</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2976175371</link>
         <description><![CDATA[<p>Google Cloud infrastructure</p><ol><li><p>Networking &amp; security (base layer)</p></li><li><p>Compute &amp; storage (scalable independently)</p><ul><li><p>Compute resources: (5)</p></li></ul><ul><li><p>(1) Compute engine --&gt; Iaas flexibility to manage server instances on virtual machine</p></li><li><p>(2) Google Kubernetes Engine GKE --&gt; containerized (code packed with dependencies) applications on cloud (Iaas &amp; Paas)</p></li><li><p>(3) Google App Engine --&gt; Paas bind code to libraries access to infrastructure to focus resources on app logic</p></li><li><p>(4) Cloud functions: functions as a service --&gt; serverless events-based execution</p></li><li><p>(5) Cloud run --&gt; scales from 0, full managed compute platform that runs requests or events driven workloads</p></li><li><p>Tensor Processing unit --&gt; scalable processing power to accelerate machine learning workloads, faster, energy efficent</p></li><li><p>Storage resources, full managed database: (6)</p></li><li><p> (1) Cloud Storage --&gt; unstructured data (preferred), standard (hot/ frequently accessed/ store briefly) data, nearline storage (infrequent / backups), coldline storage rarelyy modified), archive storage (disaster recovery)</p></li><li><p> (2) Cloud Bigtable --&gt; structured analytical NoSQL</p></li><li><p> (3) Cloud SQL --&gt; structured transactional SQL 4 regional scalability</p></li><li><p> (4) Cloud Spanner --&gt; structured transactional SQL 4 global scalability</p></li><li><p> (5) Firestore --&gt; structured transactional NoSQL document oriented</p></li><li><p> (6) BigQuery --&gt; structured analytical SQL (training model) full managed data warehouse&amp; unstructured (eh), mange tabular data and execute ML models by tunning parameter 4 u</p></li></ul></li><li><p>Data &amp; AI ML products</p><ul><li><p>Data 2 AI workflow seamless transition from data to AI</p><ol><li><p>Ingestion &amp; process: gather real time &amp; batch data from source</p><ul><li><p>e.g. Pub/sub, dataflow, dataproc, cloud data fusion</p></li></ul></li><li><p>Storage: save data in storage</p><ul><li><p>e.g cloud storage, cloud sql, cloud big table, cloud spanner, firestore</p></li></ul></li><li><p>Analytics: analyze data &amp; visualize result</p><ul><li><p>e.g. BigQuery, Bussiness intelligence (BI), looker </p></li></ul></li><li><p>AI/ML: train model 4 prediction --&gt; use SQL commands</p><ul><li><p>e.g. vertex AI, AutoML (no code), workbench (custom), colab  (custom), generative AI studio, model garden</p></li><li><p>Vertical market needs: specifically 4 industry problem --&gt; AI for healthcare, Discovery AI for retail</p></li><li><p>Horizontal market needs: across industries --&gt; contact center AI CCAI, Document AI</p></li></ul></li></ol></li></ul></li></ol><p><br></p><p>Data types</p><ul><li><p>structured: info stored in tables, rows &amp; columns</p><ol><li><p>transactional workloads: fast inserts &amp; updates for online transactions to maintain snapshots</p></li><li><p>analytical workloads: entire datasets read for processing requiring complex queries</p></li></ol></li><li><p>unstructured: non-tabular form such as documents, images, and audio files</p></li></ul><p><br></p><p>Model Cat</p><ul><li><p>AI --&gt; comp mimicking human intelligence</p></li><li><p>ML --&gt; subset of AI where comp learn without explicit programming</p></li><li><p>Deep learning &amp; deep neural networks --&gt; subset of ML</p></li><li><p>Supervised learning: labelled data &amp; task-driven, identify goal</p><ol><li><p>Classification: predict categorical variable true false (e.g. cat dog based on labelled pictures)</p><ul><li><p>logistic regression model</p></li></ul></li><li><p>Regression: forecast numeric future data based on past values (e.g. sales based on past sales)</p><ul><li><p>linear regression model</p></li></ul></li></ol></li><li><p>unsupervised learning: unlabeled data &amp; data-driven, identify pattern</p><ol><li><p>Clustering: groups similar data (e.g. customer info to determine customer segmentation)</p><ul><li><p>k-means clustering</p></li></ul></li><li><p>Association: identifies underlying relationships (e.g. correlation between product distance &amp; sales)</p><ul><li><p>&nbsp;association rule learning techniques Apriori</p></li></ul></li><li><p>Dimensionality reduction: combining record characteristics to reduce features &amp; improve model efficiency with simplified rules (e.g. combine characteristics 4 simplified rule 4 insurance quote)</p><ul><li><p>principal component analysis</p></li></ul></li></ol></li></ul><p><br></p><p>BigQuery</p><ul><li><p>few steps, saves time</p></li><li><p>supports ML models &amp; MLOps (experiment to production and helps deploy, monitor, and manage the ML models)</p></li></ul><ol><li><p>extract, transform, load data</p><ul><li><p>enrich data with other sources --&gt; SQL joins</p></li></ul></li><li><p>select preprocess features</p><ul><li><p>SQL training dataset</p></li><li><p>one-hot encoding --&gt; categorical data into numeric data</p></li></ul></li><li><p>create model &amp; evaluate performance</p><ul><li><p>choose one of the models above based on goals</p></li><li><p>define label col</p></li></ul></li><li><p>Deploy, use model to predict</p></li><li><p>moitor</p></li><li><p>release</p></li></ol><p><br></p><p>Google cloud AI tool</p><ol><li><p>pre-trained APIs (application programming interface) --&gt; no experienced personnel Paas</p><ul><li><p>cloud natural language API: parts of speech as entities &amp; sentiment</p></li><li><p>Speech 2 text API: audio 2 text 4 data processing</p></li><li><p>Cloud translation API: text to another language</p></li><li><p>Vision API: image content to text</p></li><li><p>Video intelligence API: recognizes motion and action in video</p></li><li><p>Dialogflow API: builds conversational interfaces</p></li><li><p>v generative AI</p></li><li><p>PaLM API: pre-trained large language model</p></li><li><p>Imagen: create &amp; edit images</p></li><li><p>Chirp 4 speech: build voice enabled application</p></li><li><p>codey 4 code generation: reduces &amp; debugs code</p></li><li><p>Natural language API: 4 customer feedback, comments etc</p><ul><li><p>Entity analysis: identifies subject, automatic tagging, document classification, information extraction</p></li><li><p>Sentiment analysis: identify emotions with scores between -1 and 1 to indicate strength of emotion (positive negative neutral)</p></li><li><p>Syntax: Linguistics</p></li><li><p>Categories: what is the text about</p></li></ul></li></ul></li><li><p>low / no-code --&gt; BigQuery (low code SQL) , AutoML (no code point &amp; click)</p></li><li><p>custom training --&gt; code based ML environment, training &amp; deployment 4 flexibility &amp; control over ML pipeline</p></li></ol><p><br></p><p>Vertex AI</p><ul><li><p>unified platform to build ML projects end-2-end pipeline</p><ol><li><p>data readiness: upload from wherever</p></li><li><p>feature readiness: process data features to put into model</p></li><li><p>training &amp; hyperparameter tuning: experiment with different models</p></li><li><p>deployment &amp; model monitoring: set up pipeline to turn model into production by monitoring performance &amp; updating improvements</p></li></ol></li><li><p>benefts: seamless, scalable, sustainable, speed</p></li><li><p>uses: autoML (no code), custom training (code based)</p></li></ul><p><br></p><p>AutoML</p><ul><li><p>no code</p></li><li><p>AutoML supports four types of data: image, tabular, text, and video.</p></li><li><p>automate development &amp; deployment of ML model</p></li><li><p>Phases</p><ol><li><p>Data processing: convert data into format</p><ul><li><p>numbers: z-score, quantiles</p></li><li><p>text: n-grams, embeddings</p></li><li><p>extract year day month</p></li><li><p>categories: one-hot encoding, grouping, embedding</p></li><li><p>Array of categories: convert 2 lookup index, embedding</p></li><li><p>nested fields: flatten, apply type transformation</p></li></ul></li><li><p>Architecture search &amp; tunning: </p><ul><li><p>neural architect search finds the best optimal model and tune parameters automatically by comparing performnce</p></li><li><p>transfer learning which speed the searching by using the pre-trained models e.g. LLM if say u have small data set or less computational power can use this 4 better results and accuracy</p></li></ul></li><li><p>Bagging ensemble: a few best models are assembled from phase 2 and prepared for prediction</p></li><li><p>Prediction</p></li></ol></li></ul><p><br></p><p>Custom training</p><ul><li><p>coding, more control</p></li><li><p>phrases</p><ol><li><p>choose environment: pre-built (TensorFlow, scikit-learn, ptorch) / custom container</p><ul><li><p>TensorFlow: end-2-end open platform 4 ML support, multiple abstraction layers with highest built on low-lvl APIs, runs on diff hardware</p><ol><li><p>high lvl API: keras, data</p></li><li><p>model lib: layers, losses, metrics</p></li><li><p>low-lvl API: core tensorflow on C++ / Py</p></li></ol></li></ul></li><li><p>create model: layers of neural network</p><ul><li><p>model = tf.keras.Sequential</p></li><li><p>tf.keras.layers.dense()</p></li></ul></li><li><p>compile model: config evaluation metrics &amp; optimize method</p><ul><li><p>model .compile(loss = ..., optimizer = ..., metrics = ...)</p></li></ul></li><li><p>fit model: train 4 best fit model</p><ul><li><p><a rel="noopener noreferrer nofollow" href="http://model.fit">model.fit</a>(tf.expand_dims(x, ...), y, epochs = ...)</p></li></ul></li></ol></li></ul><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-01 03:19:02 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2976175371</guid>
      </item>
      <item>
         <title>CH1.2 Intro to AI</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2976488915</link>
         <description><![CDATA[<p>AI workflow</p><ul><li><p>Neural network - input layer, hidden layer, output layer<br></p></li><li><p>e.g. DeepNN, ConvolutionalNN, RecurrentNN, LargeLanguageModel, ArtificalNN<br></p></li><li><p>node = neuron, line connecting nodes = synopses weights<br></p></li><li><p>training steps how ANN learns<br></p><ol><li><p>Calculate the weighted sum: tt sum of (input * weight)<br></p><ul><li><p>weights &amp; bias r parameters only set initial values<br></p></li><li><p>what the model learns ^<br></p></li></ul></li><li><p>Apply activation function to weighted sum<br></p><ul><li><p>activation function converts linear network to non-linear<br></p></li><li><p>ReLU --&gt; rectified linear unit function: turns input to zero if negative or original if positive<br></p></li><li><p>Sigmoid function: turns input to value between 0 to 1 for binary classification in logistic regression models (spam / not spam)<br></p></li><li><p>Hyperbolic tangent (Tanh): shifts sigmoid curve to -1 to +1,<br></p></li><li><p>Softmax: multi-class classification, probability distribution<br></p></li></ul></li><li><p>cal weighted sum for output<br></p></li><li><p>apply activation function to weighted sum<br></p></li><li><p>loss / cost function to see performance: compare predicted y &amp; actual y<br></p><ul><li><p>loss function used to calculate errors for a single training instance<br></p></li><li><p>cost function calculates errors from entire training set between predicted and actual value<br></p><ol><li><p>MSE mean squared --&gt; regression problem<br></p></li><li><p>cross-entropy --&gt; classification problems, probability distribution<br></p></li></ol></li></ul></li><li><p>Backpropagation: adjusting weights and bias <br></p><ul><li><p>take cost function &amp; turn into search strategy<br></p></li><li><p>gradient descent --&gt; process of walking down the surface formed by the cost function and finding the bottom (till gradient = 0 flat line)<br></p></li><li><p>direction (derivative of cost function + slide left) &amp; step size (learning rate set beforehand as a hyperparameter)<br></p></li></ul></li><li><p>Iteration: setting hyperparameters like learning rate &amp; epoch (step 1 to 6)<br></p><ul><li><p>set weights adjustment till optimum<br></p></li><li><p>till value stops decreasing<br></p></li><li><p>hyperparameters decided before training, determines how machine learns: e.g. num of layers, neurons, activation function, learning rate, epochs<br></p></li><li><p>^ how the model learns<br></p></li></ul><p> <br></p></li></ol></li></ul><p>ML workflow</p><ul><li><p>steps:<br></p><ol><li><p>data prep --&gt; input data (real time streaming vs batch data), engineer features<br></p></li><li><p>model development --&gt; train &amp; evaluate<br></p><ul><li><p>train: method, details<br></p></li><li><p>evaluate: recall &amp; precision use confusion matrix 4 performance measurement<br></p></li><li><p>recall --&gt; true positive / (true positive + false negatives)<br></p></li><li><p>precision --&gt; True positive / (true positives + false positives)<br></p></li><li><p>recall &amp; precision are trade-offs<br></p></li><li><p>feature importance<br></p></li></ul></li><li><p>model serving --&gt; predict used, deploy &amp; monitored<br></p><ul><li><p>deployment:<br></p><ol><li><p>endpoint --&gt; low-latency deployed 4 real time predictions<br></p></li><li><p>batch prediction --&gt; no immediate response needed, accumulated data procssed by single request (e.g. targeted ads weekly) <br></p></li><li><p>offline prediction --&gt; preloaded deployed model for off the cloud specific environment (e.g. sensitive data, internal data)<br></p></li></ol></li><li><p>monitoring: Vertex AI Pipelines --&gt; automate, monitors &amp; governs workflow in serverless manner, triggers warning based on predefined trashhold<br></p></li><li><p>Vertex AI workbench --&gt; define own pipeline with SDKs<br></p></li></ul></li></ol></li><li><p>code workflow with: vertax AI, Colab<br></p></li></ul><p><br/></p><p><br/></p><p>MLOps</p><ol><li><p>plan pipeline components<br></p></li><li><p>build custom components<br></p></li><li><p>add prebuilt component<br></p></li><li><p>compile pipeline<br></p></li><li><p>define &amp; run job<br></p></li></ol><p><br/></p><p><br/></p><p>Generative AI</p><ul><li><p>generates content by learning from existing content of foundational model<br></p></li><li><p>Create descriptions, create images, summerize videos etc, generate Q&amp;A, discover code bugs, search document, automate classification of feedback &amp; ticket, automate extraction &amp; labeling of contacts<br></p></li><li><p>generated content can be multi-modal, including text, code, images, speech, video, and even 3D<br></p></li><li><p>creating marketing campaigns, generating code, drafting text, extracting information, summarizing documents, providing virtual assistance, and operating call center bots<br></p></li><li><p>e.g. LLM<br></p></li></ul><p><br/></p><p><br/></p><p>Model Garden</p><ul><li><p>search engine for models on vertex AI<br></p></li><li><p>pre-trained and open-source models:<br></p><ol><li><p>foundation models: &nbsp;large models that can be tuned or customized for specific tasks by using Generative AI Studio, Vertex AI APIs and SDKs  --&gt;  PaLM, Imagen, embedding API, Chirp Codey<br></p></li><li><p>task-specific solutions:  pre-trained models 4 specific problems --&gt; entity analysis, syntax analysis<br></p></li><li><p>fine-tunable or open source models: through custom notebook / pipeline<br></p></li></ol></li><li><p>filter 4 proj requirements<br></p><ol><li><p>Modalities: language, vision, speech<br></p></li><li><p>Tasks: generation, classification, detection<br></p></li><li><p>Features: pipeline, notebook &amp; detection<br></p></li></ol></li><li><p>Tune model --&gt; deploy model 2 notebook --&gt; customize open source model<br></p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-01 11:17:48 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2976488915</guid>
      </item>
      <item>
         <title>CH3 - Bus decoding &amp; keypad</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2977191588</link>
         <description><![CDATA[<p>tut</p><ul><li><p>2K storage = 2048 --&gt; 0x00 to 0x07FF</p></li><li><p>4K storage = 4096 --&gt; 0x00 to 0x0FFF</p></li><li><p>don't care connect to ground</p></li><li><p>base address can also be used for the device components' address</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-02 01:23:06 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2977191588</guid>
      </item>
      <item>
         <title>CH3 classes</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2977512791</link>
         <description><![CDATA[<ul><li><p>Student s1 = new Student(); </p></li><li><p>method eg testing()</p></li><li><p>constructor has the same name as class e.g. Student()</p></li><li><p>object = instances e.g. s1</p></li><li><p>attributes = data</p></li><li><p>constructure is a method</p></li><li><p>method and constructor can both do constructor overloading</p></li><li><p>default constructor is the no args one</p></li><li><p>DIP --&gt; data inversion principle where classes are loosely coupled</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-02 05:22:15 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2977512791</guid>
      </item>
      <item>
         <title>General</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2981257744</link>
         <description><![CDATA[<p>BIF - Business Innovation Framework</p><ul><li><p>Viability: profitable &amp; sustainable value chain</p></li><li><p>Desirability: customers needs</p></li><li><p>Feasibility: ability to carry it out, logistics</p></li></ul><p><br/></p><p>Blue vs Red Ocean</p><ul><li><p>Blue: new market, vast opportunities, no other competitors mistakes to learn from</p></li><li><p>Red: cut-throat competition, known market, plenty of examples of how to run a business</p></li></ul><p><br/></p><p>LEAN framework</p><p><br/></p><p><br/></p><p><br/></p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-06 07:15:27 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2981257744</guid>
      </item>
      <item>
         <title>CH3</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2981258131</link>
         <description><![CDATA[<p>-- AI road map --</p><ol><li><p>Reactive Machine AI (basic): no learning no past experiences, repeated behavior</p></li><li><p>Limited memory AI: learns from past, limited mem, data ultilized to build reference model</p></li><li><p>Theory of mind AI: comprehends enities interacts with by recognising needs, emotions, beliefs, thoughts. </p></li><li><p>Self-aware AI: theoratical, understands its characteristic and who they are to percieve emotions and comprehend various situtations</p></li></ol><p><br/></p><p>AI - ability to think like people. These processes include reasoning, self-correction, and learning</p><p>ML - automated search for significant patterns in data. AI that enables a system to learn from data instead of explicit programming is called machine learning.  (improves, describes predicts data)</p><p>DL - Massive amounts of data are usually ingested by deep learning algorithms, which then use supervised or even unsupervised learning to generalise the characteristics/features and categories associated with that data. Neural networks are the foundation of deep learning systems.</p><p><br/></p><ul><li><p>data(observations) + model(expections from prior data) * compute prediction (classification or quality rating)</p></li><li><p>Supervised</p><ul><li><p>regression</p></li><li><p>classification</p></li></ul><p>Alggorithums</p><ul><li><p>linear regression:</p></li><li><p>random forest: classification &amp; regression</p></li><li><p>support vector machines: classification</p></li></ul></li><li><p>Unsupervised</p><ul><li><p>clustering: split into similar grps</p></li><li><p>anomally detection: usual points</p></li><li><p>Association Mining: sets of items that occur tgt in data (corelated)</p></li><li><p>latent varible models: data pre-processing to reduce dimensions features</p></li></ul></li><li><p>Reinforecement learning (RL)</p><ul><li><p>"Agent" in reinforcement learning (RL) learns how to accomplish its objectives/goals in an uncertain and sometimes complex environment. For instance, the agent may be placed in a simulation where it is rewarded or penalised for the actions that it executes\</p></li><li><p>agent maximases rewards</p></li><li><p>appropriate simulation env</p></li></ul></li></ul><p><br/></p><p>-- Neural Networks --</p><ul><li><p>edges connections like synapses</p></li><li><p>signals are numbers</p></li><li><p>nodes are like neurons</p></li><li><p>weights increase or decrease signal strength</p></li><li><p>layers</p></li></ul><p><br/></p><ul><li><p>ANN (artifical neural network): just NN, 1 layer</p></li><li><p>DNN - multiple layers</p></li><li><p>SNN (simulated NN)</p></li><li><p>CNN (Convolutional): multiple pooled or fully interlocked layers where the integrals that overlaps those is CNN, input operation applyed per layer for deep but less parameters, NLP, image and videos</p><ol><li><p>convolution: linear opperation elementwise matrix multiplication and addition, extract features from input image preserving spational relationship</p></li><li><p>Non-linearity ReLU ()Rectified Linear unit): operation applied after convolution introducing non-linearity</p></li><li><p>spatial Pooling / down-sampling: reduce dimensionality while retaining important info</p></li><li><p>classification: fully connected layer from first 3</p></li></ol></li><li><p>Generative AI: subset of DL creates content based on existing learnt content through statistical models</p></li><li><p>LLM: core based on deep learning model transformer architecture, results in vector of word embedding for correlations between words</p></li><li><p>Computer vision: generative AI creates new images by learning structure and features of existing images, GAN (generative adversal network) has a discriminator to seperate real images from fake for realistic images</p></li></ul><p><br/></p><p>-- AIOT --</p><p>The seamless integration of AI technology into IoT systems is the core aspect of AIoT. AI gives Internet of Things (IoT) devices the ability to think, allowing them to analyse data, spot trends, and decide for themselves. Usually, the architecture goes through these stages:</p><ol><li><p>Data Collection: Massive volumes of data are gathered by Internet of Things devices like wearables, cameras, and sensors from their environment.</p></li><li><p>Data Transmission: For additional processing, the gathered data is sent to a cloud platform or centralised server.</p></li><li><p>Data Processing and Analysis: In order to extract insights, identify anomalies, and forecast trends, artificial intelligence (AI) algorithms, including machine learning and deep learning, process and analyse the data.</p></li><li><p>Decision Making: Decisions are made with the help of data analysis insights. AI gives the system the ability to make these decisions on its own, without assistance from a person.</p></li><li><p>Action and Control: Based on the decisions made, the AIoT system can set off actions or control other devices, resulting in automated and optimised operations.</p></li><li><p>Continuous Learning: AIoT systems are made to continuously learn from new data and user interactions, which increases their efficiency and accuracy over time.</p></li></ol><p>Benifits</p><ul><li><p>real-time data processing</p></li><li><p>predictive mantainence</p></li><li><p>enhanced user experience</p></li><li><p>energy efficency</p></li><li><p>security annomoly detection</p></li><li><p>new bussiness opportunities</p></li><li><p>reduce downtime</p></li></ul><p><br/></p><p>-- Cloud based AIOT --</p><ul><li><p>device layer: hardware devices</p></li><li><p>connectivity layer : cloud storage to controllers sensors etc</p></li><li><p>Cloud layer: data storage, visualistaion, analystics, processing and API access</p></li><li><p>User communication layer: web portals and apps</p></li></ul><p><br/></p><p>-- edge based AIOT --</p><ul><li><p>collection terminal: hardware (sensors and embedded devices) connected to gateway</p></li><li><p>connectivity: field gateways via powerlines</p></li><li><p>edge layer: facilitates data processing and insight generation</p></li><li><p>AI applications on end devices</p></li><li><p><br/></p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-06 07:15:53 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2981258131</guid>
      </item>
      <item>
         <title>CH3.1 LAB (launching into ML is in C:\Users\celin\OOPDS)</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2981494594</link>
         <description><![CDATA[<p>Improving data quality</p><ul><li><p>ML model only consume numeric data (binary)</p></li><li><p>Messy data --&gt; missing attributes, noise, outliers, wrong, duplicates, differing case col names, not ready for ingestion</p></li><li><p>import libraries and csv data file into pandas data frame</p><pre><code>df_filename = pd.read_csv('../datafilelocation/filename.csv')

df_filename.head(X) #first X num of rows to show
df_filename.tail(X) #last X num of rows to show</code></pre></li><li><p>Analyse &amp; understand data</p><pre><code>df_filename.info() #show data frame and data types
#note string appears as obj 

print(df_filename, X) #prints last and first 5 rows of data

df_filename.describe() # summary statistics mean, std, count, min max, quartiles

grouped_data = df_filename.groupby(['criteria col', 'criteria col']) # groupby splits data into cols
df_filename.groupby('Fuel').first() #groupby first entry each month

df_filename.shape[0] #num of rows
df_filename.shape[1] # num of cols
df_filename.columns.tolist() #list of col feature names
df_filename.nunique() # num of possible data variations per feature
df_filename.isnull().sum().values.sum() #total null missing values</code></pre></li></ul><ul><li><p>Solve missing values</p><pre><code>df_filename.isnull().sum # shows all null values per feature col in data Frame
print(df_filename['Date'].isnull()) #shows rows of Date feature col (no is null row show Nan, isnull() row with Nan = True)

#replace missing with most common value using lambd
df_filename = df_filename.apply(lambda x:x.fillna(x.value_counts().index[0]))
</code></pre></li></ul><ul><li><p>Converting date cols to date time format</p><pre><code>df_filename['Date'] = pd.to_datetime(df_filename['Date'], format='%m/%d/%Y) #convert string to datetime format

df_filename['year'] = df_filename['Date'].dt.year #creating col year and casting date col's year data in</code></pre></li><li><p>renaming feature col</p><pre><code>#all cols either all upper or all lower, no space
df_filename.rename(columns = {'Date':'date', 'Zip Code':'zipcode', 'Model Year':'modelyear'})</code></pre></li><li><p>remove value from feature</p><pre><code>#unusable data e.g. col  type num int64 has &lt;2006 remove rows
df = df_filename.loc[df_filename.modelyear != '&lt;2006'].copy()</code></pre></li><li><p>one-hot encoding </p><pre><code># Categorical cols

data_dummy = pd.get_dummies(df[['zipcode','modelyear','fuel', 'make']], drop_first=True) #dummy variables based on categorical

# makes a 0 or 1 col based on each category
# increases num of cols in df

#concatenate original file df with dummy df
df = pd.concat([df, data_dummy], axis=1)
#drop original categorical cols
df = df.drop(['date','zipcode','modelyear','fuel','make'], axis=1)</code></pre></li><li><p>Analyse Pd df</p><pre><code># relationship between features
figure out goal label
read in csv file using pd.read_csv('..\df_filename')
use head, describe, info, etc</code></pre></li><li><p>Seabornplots for data analysis</p><pre><code># import matplotlib.pyplot as plt
# import seaborn as sns

# graphs reflecting varibles paired together
sns.pairplot(df_filename)

sns.displot(df_filename['Pricing']) #histogram count of one col

sns.heatmap(df_filename.corr()) #lighter better correlation, dark black not correlated, confusion matrix</code></pre></li><li><p>Train Linear Regression Model using scikit-learn</p><pre><code>#scikit-learn ML library stats modeling, clustering, dims reduction, regression, classification, define model obj to fit set of points / predict value

1. set features (only numbers no categorical  )
X = df_filename[['Avg. Area Income', 'etc', 'etc2']]
2. set label
Y = df_filename['Price']

3. Train Test Split
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=0.4, random_state=101) #same split always set via random_state

4. Create model &amp; Training
from sklearn.linear_model import LinearRegression
lm = LinearRegression() # create obj to be LR model
lm.fit(X_train, y_train) #training model

5. Evaluation
print(lm.intercept_) # intercept is the value of the bias
coeff_df = pd.DataFrame(lm.coef_, X.columns, columns = ['Coefficent']) # see weights corrosponding to different features
#if all other features set, and only that feature changes 1 unit label price will increase the weight unit amount

6. Predictions
predictions = lm.predict(X_test) # predict values on linear model obj
plt.scatter(y_test, prediction) # scatter plot represent relation between predicted and actual value (woring = good correlation = plots form linear shape)
sns.displot((y_Test-predictions), bin=50) # residuals (diff between observed vs predicted) working = normal distribution histogram

7. Performance matrix

Mean Absolute Error (MAE) --&gt; mean absolute oferrors
metrics.mean_absolute_error(y_test, predictions)

Mean Square Error (MSE) --&gt; larger errors more obvi
metrics.mean_square_error(y_test, predictions)

Root Mean Square Error (RMSE) --&gt; interpretable "y" units (most popular)
np.sqrt.(metrics.mean_square_error(y_test, predictions))</code></pre></li></ul><p><br/></p><p>IMPROVE DATA THROUGH DATA ANALYSIS</p><ul><li><p>ML phrases</p><ol><li><p>training</p></li><li><p>inference</p></li></ol></li><li><p>Define</p><ol><li><p>best use cases</p></li><li><p>success criteria</p></li><li><p>process t production (below)</p></li></ol></li><li><p>Preprocessing raw data</p><ol><li><p>Data extraction: structured, unstructured, from sources</p></li><li><p>Data analysis: </p></li></ol><pre><code>df_filename</code></pre></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-06 11:17:12 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2981494594</guid>
      </item>
      <item>
         <title>CH4 Inheritance</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2984211906</link>
         <description><![CDATA[<p>OOP</p><ul><li><p>encapsulation --&gt; putting things in classes (boxing data fields relating to each other)</p></li><li><p>abstraction --&gt; methods</p></li><li><p>inheritance</p></li><li><p>polymorphism</p></li></ul><p><br></p><p>to fix no implicit parent class no argument constructor</p><ol><li><p>add no arg constructor in parent</p></li><li><p>explicitly add parent data to constructor</p></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-08 01:29:34 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2984211906</guid>
      </item>
      <item>
         <title>Chapt 4</title>
         <author></author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2984261007</link>
         <description><![CDATA[<p><br/></p><p><br/></p><p>Inheritance:</p><ul><li><p>subclass can only inherit from one superclass</p></li><li><p>subclass cannot see private of superclass</p></li></ul><p><br/></p><p>Object:</p><ul><li><p>root of the hierarchy </p></li><li><p>override: (only in parent child context) changing the method</p></li><li><p>overload: same method, diff parameter signature</p></li><li><p>equals(): no override, then it will compare both memory reference</p></li><li><p>super(): calling no-arg constructor</p></li><li><p>ths(): calling its own no arg constructor</p></li></ul><p><br/></p><p>Polymorphism:</p><ul><li><p>require superclass object, can pass in a subclass</p></li></ul><p><br/></p><p>ArrayList:</p><ul><li><p>generic class container</p></li><li><p>must state what datatype in &lt;&gt;</p></li></ul><p><br/></p><p>Abstraction:</p><ul><li><p>abstract class --&gt; at least 1 abstract method</p></li><li><p>interface --&gt; all methods abstract</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-08 02:00:50 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2984261007</guid>
      </item>
      <item>
         <title>Practical</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2985887042</link>
         <description><![CDATA[<ul><li><p>I/O port derivation</p><ul><li><p>Find your calculator</p></li><li><p>Check the DIP SA543 switches if asked to fill in blanks must put on off</p></li><li><p>highest 2 bits, 76 don't care --&gt; 0</p></li><li><p>543--&gt; Port ID, 21--&gt; Device ID</p></li><li><p>if hardware given hex code address or base adress,</p><ol><li><p>convert to binary</p></li><li><p>get the device and port ID</p></li><li><p>Port ID will not change same port but flag device ID changes</p></li><li><p>lab's can have 8 devices</p></li><li><p>*must rmb output latched devices device ID</p></li><li><p>get all the devices adresses into hex e.g. LED --&gt; 2AH --&gt; 00101010</p></li><li><p>hardcode software @ #define LEDPort 2AH </p></li><li><p>set DIP hardware SA3, SA4, SA5 = 101 = Port ID = Off On Off</p></li></ol></li></ul></li><li><p>scan table for key pad, will give different keypad</p></li><li><p>scan code for keypad column scanner</p></li><li><p>lcdscreen x80 x30</p></li></ul><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-09 01:28:38 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2985887042</guid>
      </item>
      <item>
         <title></title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2986469862</link>
         <description><![CDATA[<p>loss metrics increases --&gt; overfitting --&gt; stop training</p><ul><li><p>data quality</p></li><li><p>linear regression</p></li><li><p>tensorflow playground</p></li><li><p>neural networks</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-09 08:52:17 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2986469862</guid>
      </item>
      <item>
         <title>Links</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2988588575</link>
         <description><![CDATA[<p>forms: <a rel="noopener noreferrer nofollow" href="https://docs.google.com/forms/d/1mY0kkL4xsoczXgUQGVuiCAjAo46fmN5emFG6TgHXo2I/edit%EF%BF%BCIdeation">https://docs.google.com/forms/d/1mY0kkL4xsoczXgUQGVuiCAjAo46fmN5emFG6TgHXo2I/edit<br>Ideation</a>: <a rel="noopener noreferrer nofollow" href="https://docs.google.com/document/d/172dH3nEYZsJKgnhC36i92Uyb3zuM1HlwtAnV__3PbRI/edit%EF%BF%BCpractice">https://docs.google.com/document/d/172dH3nEYZsJKgnhC36i92Uyb3zuM1HlwtAnV__3PbRI/edit<br>practice</a> pitch: <a rel="noopener noreferrer nofollow" href="https://www.canva.com/design/DAGEIbanzFQ/arJxlOnmBI2RQ5Xm7fVPUQ/edit?utm_content=DAGEIbanzFQ&amp;utm_campaign=designshare&amp;utm_medium=link2&amp;utm_source=sharebutton">https://www.canva.com/design/DAGEIbanzFQ/arJxlOnmBI2RQ5Xm7fVPUQ/edit?utm_content=DAGEIbanzFQ&amp;utm_campaign=designshare&amp;utm_medium=link2&amp;utm_source=sharebutton</a></p><p>link ref for product dev: <a rel="noopener noreferrer nofollow" href="https://www.youtube.com/watch?v=TbGzhmElEus">https://www.youtube.com/watch?v=TbGzhmElEus</a></p>]]></description>
         <enclosure url="https://www.youtube.com/watch?v=TbGzhmElEus" />
         <pubDate>2024-05-11 01:09:48 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2988588575</guid>
      </item>
      <item>
         <title>MST</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2993807212</link>
         <description><![CDATA[<p>Labs - chatbot own laptop</p><p>mst - ch1-3</p><p><br></p><p>CHATBOT</p><ul><li><p>NLP, intent recognition</p></li><li><p>preprocessing data</p></li><li><p>predicts intents based on user input and confidence threshold used to determine appropriate response</p></li><li><p> used in customer service, healthcare, finance</p></li></ul><p><br></p><ol><li><p>download zip folder &amp; unzip, launch VS code with code folder</p></li><li><p>python extension</p></li><li><p>ctlr shift p</p></li><li><p>(@ code search top) Python select interpreter &gt; +Create Virtual Environment &gt;Venv &gt;Python 3.10.5</p></li><li><p>Open terminal (top 3 dots) &gt; ".\.venv\Scripts\activate"</p></li><li><p>"Set-ExecutionPolicy Unrestricted -Scope Process"</p></li><li><p>if error do ".\.venv\Scripts\activate" again</p></li><li><p>(ensure u see .venv) pip install scikit-learn</p></li><li><p>pip install nltk</p></li><li><p>pip install colorama</p></li><li><p>pip install tensorflow==2.15</p></li><li><p>Run model &gt; <strong>.\.venv\Scripts\python </strong><a rel="noopener noreferrer nofollow" href="http://training.py"><strong>training.py</strong></a><strong> (replace </strong><a rel="noopener noreferrer nofollow" href="http://training.py"><strong>training.py</strong></a><strong> with py file)</strong></p></li><li><p><strong>train till accuracy = 1, model trained finish</strong></p></li><li><p><strong>.\.venv\Scripts\python </strong><a rel="noopener noreferrer nofollow" href="http://inference.py"><strong>inference.py</strong></a><strong> (for user response)</strong></p></li><li><p>add new tag, patterns (questions) and responses in intents to make chatbot respond better</p></li><li><p> data loaded and preprocessed in training.py?</p><p>with open("intents.json") as file:</p><p>      data = json.load(file)</p></li><li><p><strong>model = Sequential():</strong> Creates a sequential neural network model. This type of model allows the definition of a linear stack of layers.</p></li><li><p>update driver see lab1 step 3.4</p><p>&nbsp;</p><p><strong>model.add(Embedding(vocab_size, embedding_dim, input_length=max_len)):</strong> The main purpose of the Embedding layer is to map each word in the vocabulary to a unique vector in a high-dimensional space</p></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-15 07:06:09 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2993807212</guid>
      </item>
      <item>
         <title>MLAI lab revision</title>
         <author>venuslow2005</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2997047918</link>
         <description><![CDATA[<p>Lab 2: </p><ol><li><p>casting</p><ul><li><p>done with constructor function</p></li><li><p>x = int(1)</p></li><li><p>z = float("4.3")</p></li></ul></li><li><p>collections(arrays)</p><ul><li><p><strong>list</strong> [ordered and changeable] </p><p>-&gt; my_list = ["apple", "pear"]</p></li><li><p><strong>tuple</strong> [ordered and unchangeable] </p><p>-&gt; my_tuple = ("apple", "pear")</p></li><li><p><strong>set</strong> [unordered and unindexed] </p><p>-&gt; my_set = {"apple", "pear"}</p></li><li><p><strong>dictionary</strong> [unordered and changeable]</p><p>-&gt; my_dict = {"fruit": "apple, "color": "red"}</p></li><li><p>looping through: for x in arr: print(x)</p></li></ul></li><li><p>Class and objects</p><ul><li><p>class MyClass: x=5;</p></li><li><p>method: defined inside class, used to define behaviour of object.</p></li><li><p>init(): executed when class is initiated. assign value to object properties. (similar to a constructor) def init(self, name, age): <a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a> = name, self.age = age</p></li></ul></li><li><p>Inheritance</p><ul><li><p>private variable: __var = 0</p></li><li><p>public variable: var = 0</p></li></ul></li><li><p>creating environment</p><ul><li><p>conda create -n my_env numpy</p></li><li><p>coda create -n my_env python=3.3</p></li><li><p>conda activate env_name</p></li><li><p>conda deactivate</p></li></ul></li><li><p>python libraries</p><ul><li><p>numpy: numeric computing</p><p>-&gt; import numpy as np</p><p>-&gt; arr = np.array([])</p><p>-&gt; create sequence number: print(np.arange(1, 10, 2)) &lt;2nd parameter defines max number&gt;, 3rd defines +3&gt;</p><p>-&gt; array slicing: arr_name[from:to]</p><p>-&gt; array stacking</p><p>-&gt; matrix multiplication: <a rel="noopener noreferrer nofollow" href="http://np.dot">np.dot</a>(a,b)</p></li></ul><p><br/></p><ul><li><p>pandas: data structures working with labelled date</p><p>-&gt; import pandas as pd</p><p>-&gt; dataframe: pd.DataFrame</p><p>-&gt; reading data from cv: <a rel="noopener noreferrer nofollow" href="http://pd.read">pd.read</a>_csv("csvname.csv")</p></li></ul><p><br/></p><ul><li><p>matplotlib: plotting library for 2D graphics</p><p>-&gt; import matplotlib.pyplot as plt</p><p>-&gt; plt.plot(y axis) or plt.plot(x, y)</p></li></ul></li></ol><p><br/></p><p><br/></p><p><br/></p><p><br/></p><p><br/></p><p><br/></p><p><br/></p><p>commands/keywords:</p><ol><li><p>range() -&gt; loop through a set of code a specified no. of times, start by 0. e.g: for x in range(2, 30, 3): print(x)</p></li><li><p>def -&gt; to define a function. e.g: def my_function():</p></li><li><p>reshape() -&gt; reshape 1d array to multi d array, reshape(2,5) -&gt; no. of dimensions, no. of elements</p></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-17 04:47:15 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2997047918</guid>
      </item>
      <item>
         <title>code notes</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2998142287</link>
         <description><![CDATA[<p>array</p><pre><code>ArrayList&lt;String&gt; lis = new ArrayList&lt;&gt;();
lis.add();
lis.get();
for (String num : lis){
     System.out.println(num)
}

String name[] = new String[3];
int age[] = new int[3];

for (i=0;i&lt;3;i++){
  int x = i+1;
  System.out.print("Student "+x+": "+name[i]+", "+age[i]+", "+school[i]+"\n");
}</code></pre><p><br></p><p>casting</p><pre><code>(int), (String), (float), (double), (byte)</code></pre><p><br></p><p>classes</p><pre><code>public static void main(String[] args){
}

public class ArrayList&lt;String&gt; numbersdis(String b){
}</code></pre><p><br></p><p>exceptions</p><p><br></p><p>throws</p><p>random</p><pre><code>double rand = Math.random();
int rolled = (int) (rand*max+min);
// int rolled = (int) (rand*max+min); returns 0-max</code></pre><p><br></p><p>comparable</p><pre><code>String a = a[i];
String b = a[n];
if (a.compareTo(b) &gt;= 0) {
   //a is greater than b
}</code></pre><p><br></p><p>Holders</p><pre><code>System.out.printf("%10d%10.4f%10.4f\n", d, (float) s, (float) c);
//%10d == speciefies width for int
//%f is float place holder
//%10.4f == 10 spaces with float to 4 dp</code></pre><p><br></p><p>Scanner</p><pre><code>Scanner sc = new  Scanner(System.in);
string name = sc.nextLine();
int n = sc.nextInt();</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-18 04:31:01 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2998142287</guid>
      </item>
      <item>
         <title>Chapter 1</title>
         <author>venuslow2005</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2998610183</link>
         <description><![CDATA[<p>-- bus structure</p><ul><li><p>address bus: unidirectional, used by CPU to send out address of memory location</p></li><li><p>data bus: bidirectional, road for data to travel, to and fro the cpu and other areas. device connected must have 3 state buffers</p></li><li><p>control bus: tells computer R/WR activity. read: read memory location. write: CPU store memory or output data</p></li></ul><p><br/></p><p>-- increase in performace</p><ol><li><p>processing power</p><p>-&gt; faster processing thus older programs can be used</p></li><li><p>address</p><p>-&gt; 16 bit address only allows 2^16 bytes of data</p></li><li><p>data</p><p>-&gt; fetch and manipulate in units of 32 bits at a time</p></li></ol><p><br/></p><p>intel processor: desktop</p><p>arm risc: mobile devices</p><p><br/></p><p>-- embedded system characteristics</p><ul><li><p>fixued use</p></li><li><p>small and limited resources</p></li><li><p>failure tolerance</p></li><li><p>real time control</p></li><li><p>guaranteed response time</p></li><li><p>reliable</p></li><li><p>simple i/o</p></li><li><p>low power consumption</p></li><li><p>low cost</p></li></ul><p><br/></p><p>-- hardware</p><ol><li><p>interrupts: handles slower i/o devices without processor idling</p></li><li><p>timers: precise timing for control tasks</p><p>&gt;&gt; software delay loops does not allow processor to perform other tasks, execution time of an instruction can vary, and multitasking os cannot work on sw loop</p><p>&gt;&gt; on or off chip are essential</p><p>&gt;&gt; possible to read values of timer register for short duration events</p></li><li><p>DMA: peripheral devices transfer data to and fro memory without disrupting processor</p><p>&gt;&gt; main processor goes into HOLD state where address and data lines are high impedance</p><p>&gt;&gt; will generate addresses needed and keep track of bytes transferred</p><p>&gt;&gt; address &amp; data bus taken over by DMA</p></li><li><p>power management: modern mobile phones run on analog signals</p><p>&gt;&gt; standby: memory content present</p><p>&gt;&gt; hibernate: memory content move to non volatile memory </p></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-19 04:39:15 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/2998610183</guid>
      </item>
      <item>
         <title>python lab2 lab test</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3000722207</link>
         <description><![CDATA[<p>#8.5.1 list --&gt; ordered &amp; changeable</p><p>my_list = ["apple", "banana", "cherry"]</p><p>i = int(0)</p><p>for i in range(3):</p><p>    print("fruit = " + my_list[i])</p><p><br></p><p>#8.5.2 Tuple --&gt; ordered &amp; unchangable</p><p>my_tuple = ("apple", "banana", "cherry")</p><p>i = int(0)</p><p>for i in range(3):</p><p>    print("fruit = " + my_tuple[i])</p><p><br></p><p>#8.5.3 Set --&gt; unordered (cannot be called by index) &amp; unchangable</p><p>my_set = {"apple", "banana", "cherry"}</p><p>for x in my_set:</p><p>    print(x)</p><p><br></p><p>#8.5.4 Dictionary --&gt; collection unordered, changeable, indexed</p><p>#key: value</p><p>my_dict = {"brand": "Ford", "model": "Mustang", "year": 1964}</p><p># access value items using key</p><p>x = my_dict["model"]</p><p>print(x)</p><p>for x in my_dict:</p><p>    print("key = " + x) #gets keys</p><p>    print("value = " + str(my_dict[x])) #gets keys</p><p><br></p><p>#8.7.3 continue</p><p>i = int(0)</p><p>while i&lt;10:</p><p>    i+=1</p><p>    if i==3:</p><p>        continue #go back to start of loop skips rest of code below</p><p>    print(i) #print 1-10 skips 3</p><p>   </p><p>for x in range(2,30,3): # range(start, end when less than, increment value)</p><p>    print(x)</p><p><br></p><p>#customizing parameters </p><p># %s --&gt; holder for string, %d --&gt; holder for number</p><p>print('%s, %s!' % ("lol","ducks"))</p><p>def hello(greeting='hello',name='world'): # Default parameters.</p><p>    print('%s, %s!' % (greeting, name)) # Format the output.</p><p>hello() # hello，world Default parameter.</p><p>hello('Greetings') # Greetings，world Position parameter.</p><p>hello ('Greetings', 'universe') # Greetings, universe Position parameter.</p><p>hello (name= 'Gumby') # hello, Gumby Keyword parameter</p><p><br></p><p>#9.1 class </p><p># --&gt; grp tgt related data and functions which act on that data</p><p>class MyClass:</p><p>    x = 5</p><p>#9.2 class object</p><p># --&gt; unique instance of a data structure defined by its class</p><p>obj1 = MyClass()</p><p>print("obj1 = " + str(obj1.x))</p><p>#9.3 Methods</p><p># --&gt; functions defined inside a class body</p><p># --&gt; behaviors of an obj</p><p>class HiClass:</p><p>    me = "celine" #variable</p><p>    def say_hi(self):</p><p>        print('Hello %s, how are you?' % (self))</p><p>    def name(self):</p><p>        print('Hello %s, how are you?'% (<a rel="noopener noreferrer nofollow" href="http://self.me">self.me</a>))</p><p>p = HiClass()</p><p>p.say_hi()</p><p><a rel="noopener noreferrer nofollow" href="http://p.name">p.name</a>()</p><p><br></p><p>#9.4 init function</p><p># --&gt; Initalise function assign values to object properties</p><p># --&gt; like constructor</p><p>class Person: # create class Person</p><p>    def <strong>init</strong>(self, name, age): #initialise</p><p>        <a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a> = name #attributes</p><p>        self.age = age</p><p>p = Person("John", 36) #create object p in class Person</p><p>#Person obj no attribute self</p><p>print(<a rel="noopener noreferrer nofollow" href="http://p.name">p.name</a>)</p><p>print(p.age)</p><p><br></p><p>#9.5 using classes</p><p># string.title() --&gt; first letter in each word upper case</p><p>class Dog():</p><p>    """A simple attempt to simulate a dog"""</p><p>    def <strong>init</strong> (self,name,age):</p><p>        """Initialize the name and age attributes."""</p><p>        <a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a> = name #atributes</p><p>        self.age = age</p><p>    def sit(self):</p><p>        """Simulate a dog sitting when ordered."""</p><p>        print(<a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a>.title()+" is now sitting")</p><p>    def roll_over(self):</p><p>        """Simulate a dog rolling over when ordered."""</p><p>        print(<a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a>.title()+" rolled over!")</p><p>    def info(self):</p><p>        print(<a rel="noopener noreferrer nofollow" href="http://self.name">self.name</a> + "is %d years old!" % (self.age))</p><p>    #def testing():</p><p>        #print()</p><p># Instantiate a class.</p><p>dog = Dog ("Husky",2)</p><p>dog.sit()</p><p>dog.roll_over()</p><p><a rel="noopener noreferrer nofollow" href="http://dog.info">dog.info</a>()</p><p># dog.testing() --&gt; Type error 0 arguments but 1 self was given</p><p><br></p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-21 00:31:46 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3000722207</guid>
      </item>
      <item>
         <title>lab notes</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3003055927</link>
         <description><![CDATA[<ul><li><p>check keypad structure for bit 4 which pin to ignore</p></li><li><p>goes from bit 7 to 0 write pins accordingly</p></li><li><p>active low</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-05-22 08:20:28 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3003055927</guid>
      </item>
      <item>
         <title>Holi</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3021714800</link>
         <description><![CDATA[<p>notes:</p><ul><li><p>Launching into ML</p></li><li><p>Computer Vision</p></li><li><p>NLP</p></li><li><p>Example project</p></li><li><p>proj pictures</p></li></ul><p><br/></p><p>side note:</p><ul><li><p>geminni</p></li><li><p>open government products (see linkedin Kee Wei Lam)</p></li><li><p>RNN and Transformers</p></li><li><p>Diffusion and GAN</p></li><li><p><strong>Trailblazing with Streamlit</strong></p></li><li><p><strong>pytorch</strong></p></li><li><p><strong>Orange and Pycaret</strong></p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-06-08 04:13:27 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3021714800</guid>
      </item>
      <item>
         <title>holi</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3021715952</link>
         <description><![CDATA[<ul><li><p>write a list of slides and speaker notes onto gg docs</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-06-08 04:17:50 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3021715952</guid>
      </item>
      <item>
         <title></title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3021716004</link>
         <description><![CDATA[<ul><li><p>print and read next sem</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-06-08 04:18:04 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3021716004</guid>
      </item>
      <item>
         <title></title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3021716219</link>
         <description><![CDATA[<ul><li><p>slides pitch deck</p></li><li><p>product?</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-06-08 04:18:49 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3021716219</guid>
      </item>
      <item>
         <title>CH3.2 Launching into ML</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3022130637</link>
         <description><![CDATA[<p>-- IMPROVE DATA THROUGH ANALYSIS --</p><ul><li><p>Steps: </p><ol><li><p>data extraction (structured CSV, a text, JSON, or XML format or unstructured)</p></li><li><p>data analysis (use EDA exploratory data analysis, CDA classical data analysis and Bayesian)</p></li><li><p>data preparation (data transformation, which is the process of changing or converting the format, structure, or values of data you've extracted into another format or structure e.g cleansing)</p></li></ol></li><li><p>Cleansing</p><ul><li><p>remove superfluous and repeated records from log data</p></li><li><p>alter data types where a data feature was mistyped / mis-converted</p></li><li><p>convert categorical data to numerical data</p></li></ul></li><li><p>Data Quality through data asset inventory --&gt; relative accuracy, uniqueness, and validity of data</p><ul><li><p>established baseline ratings for data sets compared against the data and systems to identify new data quality issues</p></li><li><p>Accurate == correct values that match up with the real world or events it describes for correct conclusions</p></li><li><p>Consistent == represented in a consistent and unambiguous form that correlates to different dataset instances</p></li><li><p>Complete --&gt; Timely == expected vs ready to use production to processing time</p></li></ul></li><li><p>Ways to improve data quality (cleaning data)</p><ol><li><p>Resolve missing values (null values skew data)</p></li><li><p>Convert date time features to a date/time format (seasonality)</p></li><li><p>Parse date time features (trends)</p></li><li><p>Remove unwanted values from a feature column (e.g. &lt; , make bucket or remove it from row)</p></li><li><p>Convert categorical data to One-hot encoding (create a boolean column for each category)</p><p><br/></p><p><br/></p><p>Data analysis:</p></li></ol></li><li><p>EDA (exploratory data analysis)</p><ul><li><p>problem &gt; data &gt; analysis &gt; model &gt; conclusion</p></li><li><p>infer what model is best fit for data</p></li></ul><ul><li><p>analyzing data sets to summarize their main characteristics, often with visual methods for graphics &amp; simple stats </p></li><li><p>Outliers or anomalies, trends, and data distributions to identify those features that can aid in increasing the predictive power of ML model</p></li><li><p>obtain theories that can later be tested in the modeling step</p></li></ul><ul><li><p>graphics and basic sample statistics such as mean and median or standard deviation through scatterplots, boxplots, histograms, etc</p></li></ul></li><li><p>CDA (classical data analysis)</p><ul><li><p>problem &gt; data &gt; model &gt; analysis &gt; conclusion</p></li><li><p>analysis of estimation and testing are focused on parameters of model</p></li></ul><ul><li><p>data collection is followed by the imposition of a model, normality, linearity</p></li></ul></li><li><p>Bayesian analysis</p><ul><li><p>problem &gt; data &gt; model &gt; prior distribution &gt; analysis &gt; conclusion</p></li><li><p>answer research questions about unknown parameters using probability statements based on prior data</p></li></ul></li></ul><p><br/></p><p>EDA in ML</p><ul><li><p>focus is on the data, its structure, outliers and models suggested by the data</p></li><li><p>Univariate analysis describes data via summaries &amp; patterns</p><ul><li><p>categorical</p><ul><li><p>numerical - pd.crosstab</p></li><li><p>visual - sns.CountPlot()</p></li></ul></li><li><p>continuous</p><ul><li><p>numerical - dataframe.describe()</p></li><li><p>visual - boxplot(), distplot(), kdeplot()</p></li></ul></li></ul></li><li><p>Bivariate analysis finds relationship between two sets of values</p><ul><li><p>seaborn - ability to build conditional plots</p><ul><li><p>jointplot function draws a plot of two variables with bivariate and univariate graphs</p></li><li><p>factorplot map method can map a factorplot onto a KDE, distribution or boxplot chart</p></li></ul></li></ul><ul><li><p>category 2 category - sns.factorplot()</p></li><li><p>category 2 continuous - sns.jointplot()</p></li><li><p>continous 2 category - sns.factorplot.map(sns.kde/dist/box0)</p></li></ul></li></ul><p><br/></p><p>Data analysis &amp; visualisation</p><ul><li><p>find influential features</p></li></ul><ul><li><p>EDA help find insights for data cleaning, preparation or transformation</p></li><li><p>at every step data exploration, data cleaning, model building, conclusion</p></li><li><p>Histogram - spread  of continous sampled data - sns.set_style('whitegrid')df_file['col_name'].hist(bins=30) plt.xlabel('median_house_value) </p></li><li><p>Scatter plot - bivariate correlation presence - </p><p>x = df_file['col_name1'] </p><p>y = df_file['col_name2']</p><p>plt.scatter(x,y)</p><p><a rel="noopener noreferrer nofollow" href="http://plt.show">plt.show</a>()</p></li><li><p>Heatmap - multivariant correlation, lighter shade = stronger - sns.heatmap(df_filename.corr())</p></li></ul><p>-- ML IN PRACTICE --</p><p>Supervised learning</p><ul><li><p>modelled labelled examples to predict future values using predictors</p></li><li><p>relation or key feature known</p></li><li><p>row = example, columns = characteristic label / features</p><ul><li><p>regression - continuous</p></li><li><p>classification - discrete value / classes</p></li></ul></li></ul><p>Unsupervised learning</p><ul><li><p>unlabeled data</p></li><li><p>discovering raw data groups by looking for clusters etc</p></li></ul><p><br/></p><p>Linear regression</p><ul><li><p>(continuous) 1 group that spans across range</p><ul><li><p>(1) get linear slope to find rate of relation to multiply features for future prediction</p></li><li><p>(many) generalisation of a line to get continuous value for lable</p></li><li><p>minimize error between label predicted and actual using <strong>mean-squared error </strong>(reduce euclidian distance between predicted &amp; actual)</p></li></ul></li><li><p>(categorial) - classification linear groups linearly seperate</p><ul><li><p>decision boundary to separate different classes</p></li><li><p>hyperplane in higher dimension with classes on either sides</p></li><li><p>minimize misclassification error between predicted and label class through <strong>cross-entropy</strong></p></li><li><p>can discretize by forming groups using the ranges as classes</p></li><li><p>BigQuery stores data and retrieved with sql</p></li></ul></li></ul><p>Both use 2D hyperplane to get better splits</p><p><br/></p><p>Logistic regression</p><ul><li><p>predict probability instead of binary yes or no answers</p></li></ul><ul><li><p>take linear model and squish it through a sigmoid activation function for probably 0 to 1 with a calibrated probability estimate of training data occurrence</p></li><li><p>gradient descent seeks to minimize cross entropy, it pushes output values closer to one for positive labels and closer to zero for negative labels</p></li><li><p>regulation is important to prevent driving loss to zero</p></li><li><p>sigmoid function asymptotes to zero when the logit is negative infinity and to one when the logit is positive infinity</p></li><li><p>weights is increased and increased, leading to numerical-stability problems, overflows and underflows bad for training</p></li><li><p>saturation when gradient becomes 0 and training stops, vanishing gradient makes training difficult --&gt; overfitting</p></li><li><p>regulation in logistic regression helps stops weights being driver to +- infinity &amp; help logistics avoid asymptotes that halt training</p></li><li><p><strong>counter overfitting via regularization &amp; early stopping (loss epoach graph)</strong> </p></li><li><p>overfitting hurts generalization &amp; regularization increases bias underfitting hurts generalization  </p></li></ul><p>logistic regression predictions should be unbiased</p><ul><li><p>ave predictions == ave observations (no shift of probability)</p></li></ul><p>Receiver Operating Characteristic curve (ROC)</p><ul><li><p>chooses decision threshold based on decision criteria</p></li><li><p>binary decisions based on TP / FP rates</p></li></ul><p>Area Under Curve (AUC)</p><ul><li><p>average measure of performance across possible classification thresholds</p></li><li><p>help choose between models for model that scores in correct relative order</p></li><li><p>scale-invarriant &amp; classification threshold invariant &amp; precision recall curve</p></li></ul><p>Calibration scatter plot</p><ul><li><p>bucketized bias to find slices where model poor performance of over or under predicted (locate area that cmi and fix it)</p></li><li><p>true or false for real world but prediction is 0 to 1 so ave a large grp sum for more accurate probability </p></li></ul><p><br/></p><p>-- TRAINING AUTOML THROUGH VERTEX AI --</p><ul><li><p>ML starts with requirement or problem to solve</p></li><li><p>ML pipline workflow</p></li><li><p>ML uses lots of data (train test validating) and keep outlier, builds models (more holistic picture of data)</p></li><li><p>Statistics throw away outliers</p></li><li><p>Statistics for testing hypothesis</p></li><li><p>Deep learning is supervised learning, large data, GPU, high accuracy, longer to train, tunning parameters </p></li></ul><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-06-09 08:12:10 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3022130637</guid>
      </item>
      <item>
         <title>CH3.3</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3022131436</link>
         <description><![CDATA[<p>-- OPTIMISATION --</p><p>Loss functions (model performance) </p><ul><li><p>models are defined as math functions using parameters &amp; hyperparameters</p></li><li><p>Analytical methods for finding the best set of model parameters do not scale</p></li><li><p>optimizing parameters searching through parameter-space</p></li><li><p>loss functions take training set composed single number for model quality evaluation</p></li><li><p>Measure of quality:</p><ul><li><p>Error difference -&gt; sign difference between actual value - predicted</p></li><li><p>Compose a sum -&gt; put error values together</p></li><li><p>Root Mean Square Error (RMSE) -&gt; minimize RMSE better quality predictions (continuous, not classification)</p></li><li><p>loss functions help find best fit linear model predictions for underlying data for better model (weight and bias choice)</p></li><li><p>Cross entropy -&gt; penalizes bad predictions very strongly by finding best parameters (classification best)</p></li></ul></li></ul><p>Gradient Descent</p><ul><li><p>turn loss function (topographic / contour map) into search strategy to find minima by descending(like climbing down a mountain) </p></li><li><p>Which direction should I head?</p></li><li><p>How large or small step?</p><ul><li><p>too small training take forever</p></li><li><p>too large, overshoots, not guaranteed to converge</p></li></ul></li><li><p>Epsilon -&gt; tiny constant</p></li><li><p>while loss &gt; epsilon, parameter = old value + (step size * direction), recompute loss</p></li><li><p> loss function slope (finding minima where loss function slope = 0)</p><ul><li><p>direction -&gt; slope negative go right</p></li><li><p>Size -&gt; magnitude slope</p></li></ul></li><li><p>empirical performance problem theorized good but dose not work as well</p><p><br></p></li></ul><p>Troubleshooting loss curve</p><ul><li><p>Loss/time curve, big drop then smaller steps closer to minima</p><ul><li><p>looks like seismicseismic activity -&gt; overshoot</p></li><li><p>looks like going no where -&gt; step too small</p></li></ul></li><li><p>learning rate set before beginning -&gt; hyperparameter</p></li><li><p>hyperparameter tunning -&gt;method to set best hyperparameters</p></li><li><p> learning rate is fraction &lt;1 </p><p><br></p></li></ul><p>ML model pitfalls</p><ul><li><p>running same hyperparameters model twice resulting parameter different</p></li><li><p>could have more than 1 bottom -&gt; convexity -&gt; non-convex</p></li><li><p>1 bottom -&gt; convex</p></li><li><p>too slow </p><ol><li><p>train loop (calculate derivative, data points &amp; parameters)</p><ul><li><p>cost of the calculation is proportional to the number of data &amp; number of parameters</p></li></ul></li><li><p>Take Step (num of model parameters)</p></li><li><p>Check Loss (num of data points, model parameters &amp; freq)</p></li></ol></li><li><p>improve training time by</p><ol><li><p>turning knob of num of data points to cal derivative of </p></li><li><p>frequency of checking loss - readyToUpdateLoss function are time-based and step-based</p></li></ol></li><li><p>samples == batches = sampling with uniform probability</p></li><li><p>mini-batch = batch size</p></li><li><p>model training: changing our model's parameters and checking to see when we've made the right changes</p><p><br></p></li></ul><p>Performance metrics</p><ul><li><p>Loss functions problems: long training times, suboptimal minima and inappropriate minima</p><ul><li><p>inappropriate minima -&gt; points in parameter space that reflect strategies either that won't generalize well, that don't reflect the true relationship being modeled or both -&gt; e.g. predict every category available not possible</p></li><li><p>gap between the metrics we care about and the metrics that work well with gradient descent</p></li><li><p>perfect loss function would minimize the number of incorrect predictions where it takes integers not real world values</p></li><li><p>need differentiability  with respect to loss</p></li></ul></li><li><p>performance metrics easier to understand &amp; directly connected to business</p></li><li><p>e.g. confusion matrices, precision and recall</p></li></ul><p>Confusion Matrix -&gt; quantifiably assess the performance of our classification model</p><ul><li><p>Precision - how it did with true positive predictions but could miss false neg</p></li><li><p>Recall - how it did with false positives </p></li></ul><p><br></p><p>-- SAMPLING &amp; GENERALISATION --</p><p>Generalization &amp; ML models</p><ul><li><p>accurate ML model is not always your best choice</p></li><li><p>mean square error tells us how close a regression line is to the set of points from it</p></li><li><p>A more complex model could have more free parameters -&gt; overfit</p><ul><li><p>to solve - split data, done with training, compare its performance against an independent siloed validation dataset</p></li><li><p>train till not perform well against validation, loss metrics start to increase or creep up, it's time to stop</p></li></ul></li><li><p>overly simplistic linear model that doesn't fit the relationships true to the data -&gt; underfitting</p></li><li><p>add data test set for validation to loss function</p></li></ul><p>When to stop model training</p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-06-09 08:15:02 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3022131436</guid>
      </item>
      <item>
         <title>Lab 3</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3034933082</link>
         <description><![CDATA[<ul><li><p>analyzing data: <a rel="noopener noreferrer nofollow" href="https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/machine_learning/deepdive2/launching_into_ml/solutions/python.BQ_explore_data.ipynb">https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/machine_learning/deepdive2/launching_into_ml/solutions/python.BQ_explore_data.ipynb</a></p></li><li><p>linear regression: <a rel="noopener noreferrer nofollow" href="https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/machine_learning/deepdive2/launching_into_ml/labs/intro_linear_regression.ipynb">https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/machine_learning/deepdive2/launching_into_ml/labs/intro_linear_regression.ipynb</a></p></li></ul><p><br/></p>]]></description>
         <enclosure url="https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/machine_learning/deepdive2/launching_into_ml/labs/python.BQ_explore_data.ipynb" />
         <pubDate>2024-06-22 07:10:58 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3034933082</guid>
      </item>
      <item>
         <title>lab 6 important for project</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3035731274</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2024-06-24 01:23:07 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3035731274</guid>
      </item>
      <item>
         <title>MST revision</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3035744948</link>
         <description><![CDATA[<ul><li><p>IMDA manages singagpre RF</p></li><li><p>1990 nokia</p></li><li><p>applications with 5G, AI VR AIOT</p></li><li><p>3GPP --&gt; technical standards for global mobile communications</p></li><li><p>ITUR --&gt; frameworks</p></li><li><p>20Gbps theoratical maximum speed of 5G</p></li><li><p>main advantage of ede comp, faster data analysis &amp; computing, reduce latency</p></li><li><p>SDN &amp; NFV enables network slicing (allocate resources using software)</p></li><li><p>limitations of 4G is restricted connection density compared to 5G --&gt; mmtc</p></li><li><p>shift in delivering services in transition to 5G, from connected services to specified value added services</p></li><li><p>3 important 5G, minimum latency, low data throughput, high battery usage</p></li><li><p>ML exposed more data, anticipate outcomes more accurately</p></li><li><p>AI enhances data analytics for IOT</p></li><li><p>benifits of convergance  of 5G AIOT is improved asset management &amp; increased productivity</p></li><li><p>real time data processing with high speed connectivity and data analytics for businesses to make choices faster</p></li><li><p>Both use the same uplink and down link 5G NR &amp; LITE</p></li><li><p>TDD in NR use self contained slots for transmissions</p></li><li><p>MIMO offset the path loss with higher antena gain to mitigate high-frequency propagation at millimeter wave</p></li><li><p>beam sweeping to cover the entire cell cverage area</p></li><li><p>benfits of millimeter wave freq ranges in 5G, achieve extreme throughput, carrier aggretion, smaller cell footprints (can put anywhere &amp; cover more area), flexible deployments</p></li><li><p>5G overcomes high freg propogation,limited range </p></li><li><p>what purpose %G SA to connect to only 5G networks for both control &amp; data</p></li><li><p>NSA network control data LTE network</p></li><li><p>which technology differentciate next gen from lte core, network virtualization</p></li><li><p>dual connectivity operate across lite and NR </p></li><li><p>decouple software from hardware flexible networks functions deployment</p></li><li><p>AMF role to establish user control plane for moblie devices</p></li><li><p>UPF user data flows and ensuring optimized routing</p></li><li><p>SOC key characteristic is seperation of control and data plane</p></li><li><p>OFDM inprove bandwidth and data speeds</p></li><li><p>SOC service based architecture and adaptable design principles</p></li><li><p>ML improve predicted data, describing data iteratively</p></li><li><p>connected layer cnn classify images into classes</p></li><li><p>discriminator in GAN to seperate real from fake</p></li><li><p>edge devices more improved privacy</p></li><li><p>edge devices handle data locally, latency lower</p></li></ul><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-06-24 01:31:44 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3035744948</guid>
      </item>
      <item>
         <title>Computer Vision</title>
         <author></author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3039936959</link>
         <description><![CDATA[<p>------- Custom training with Linear, NN and DNN models</p><p><br/></p><p><strong>Implementing Linear Models for image classification:</strong></p><p>keras -&gt; high level API, core data structure consists of layers and models</p><p>simplest type: sequential model which groups a linear stack of layers: output of 1 layer is input of another layer.</p><p>Cannot work with multiple input types (images, texts at the same time) or multiple outputs (regression, classification) at the same time. need to use functional API.</p><p><br/></p><p>Keras model:</p><ol><li><p>Define and create model</p><p>Linear model: each image is flattened by unstacking pixels then produces 5 outputs. weights are only created when model is first exposed to input data.</p><p><br/></p><p>Flattening layers: transforms image format from 3D array to 1D array. No parameters to learn, and only reformats the data.</p><p><br/></p><p>softmax -&gt; exponentiates its inputs and normalise them (higher values higher, lower values lower)</p></li><li><p>compile model</p><p>Optimiser (updates model based on data it sees), loss function (how accurate model is during training) , metrics (monitor training and testing).</p><p><br/></p><p>optimisers: methods to update model weights to reduce losses, and adjusting learning rate</p><p><br/></p><p>loss function: tells optimiser when its in the right or wrong direction. classification taks: &gt;=2 label classes</p><p><br/></p><p>metrics: identify areas for improvement in training. </p></li><li><p>print a string summary of NW (OPTIONAL)</p></li><li><p>call <a rel="noopener noreferrer nofollow" href="http://mode.fit">mode.fit</a>() -&gt; train model for no. of epochs</p><p>training dataset is to train model, validation is for report accuracy metrics.</p></li><li><p>evaluate performance (OPTIONAL)</p><p>callback: object that can perform actions at various stages of training</p></li><li><p>generate predictions</p><p>model.predict() -&gt; expects a batch of images, thus need to reshape image tensor as a batch consisting of only one image.</p><p><br/></p><p>predicted label from model is the label in which has most confidence. can convert logits to probabilities by softmax (tf.math.softnax)</p></li><li><p>plot predictions (OPTIONAL)</p></li></ol><p><br/></p><p><br/></p><p><strong>NN and DNN for image classification</strong></p><p>linear model: single layer neural network (1 fully connected layer)</p><p>Y = softmax(B + W(B + WX))</p><p>need to connect many processing units into a neural network, each computes a linear function if its followed by a nonlinear</p><p><br/></p><p>Activation funciton -&gt; separates linear models from NN </p><ul><li><p>(ReLU helps NN to learn nonlinear states with real world info of visual inputs)</p></li><li><p>returns 0 if -ve input</p></li><li><p>returns value if +ve input</p></li></ul><p><br/></p><p>one hidden layer = one dense layer before output layer</p><p>evaluate model performance: plot loss and validation loss using training_plot function</p><p>      -&gt; if loss doesnt go down smoothly: training parameters can be improved</p><p>      -&gt; similar to what is obtained in linear model: model stuck searching for function to sufficiently map inputs to outputs (try improving)</p><p><br/></p><p>Improve model performance:</p><ul><li><p>adding regularisation</p></li><li><p>changing learning rate</p></li><li><p>apply early stop</p></li></ul><p><br/></p><p><br/></p><p><strong>DNN dropout and Batch Normal</strong></p><p>Universal approximation theorem: any continuous function defined in the n-dimensional unit hypercube can be approximated by a finite sum of the type. only 1 single hidden layer and approximate any function (meaning theoretically, no ML task a network cant solve.)</p><p><br/></p><p>DNN -&gt; more than 1 hidden layer: each added layer, no. of trainable parameter increases</p><p><br/></p><p>large: more memory, smaller batch size, slow optimisation, slower to decide, overfit training data</p><p><br/></p><p>size of NN: implicit regularising effect, preventing large nets compared to the dataset.</p><p><br/></p><p>prevent overfitting in DNN:</p><ul><li><p>regularisation</p><ul><li><p>dropout (only used with NN)(use to avoid overfitting in DNN)</p><p>only used during training</p></li><li><p>L1 - model sparser by dropping poor features</p></li><li><p>L2 - keep weight value small</p></li></ul></li></ul><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-06-27 15:47:20 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3039936959</guid>
      </item>
      <item>
         <title>Chapter 6 Collections Framework</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3040614451</link>
         <description><![CDATA[<p>-- Containers --</p><p>collection - stores elements</p><p>map - stores key-value pairs</p><p><br/></p><p>-- Collection--</p><p><br/></p><ul><li><p>Set</p><p><br/></p></li><li><p>Sequenced Collection</p></li><li><p>Queue</p></li></ul><p><br/></p><p>-- Array List --</p><pre><code>ArrayList a = new ArrayList&lt;&gt;(); 
a.add("Ang Mo Kio"); 
a.add("Dover"); 
a.add("Changi"); 
a.forEach(e-&gt;System.out.println(e.toUpperCase()));</code></pre><p><br/></p><p>-- Linked List --</p><p>-- Doubly Linked List --</p><p>-- Stack --</p><p>-- Methods --</p><p>-- Iterators --</p><p>-- Queue &amp; Dequeue --</p><p>-- PiorityQueue --</p><p>-- Set --</p><ul><li><p>HashSet</p></li><li><p>TreeSet</p></li><li><p>LinkedHashSet</p></li></ul><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-06-28 07:35:54 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3040614451</guid>
      </item>
      <item>
         <title>for rps_app.py cmd</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3042515333</link>
         <description><![CDATA[<p>cd C:\Users\celin\.spyder-py3\rps </p><p>conda create --name myenv python=3.10</p><p>conda activate myenv </p><p>pip install streamlit</p><p>pip install tensorflow</p><p>pip install streamlit tensorflow</p><p>streamlit run rps_<a rel="noopener noreferrer nofollow" href="http://app.py">app.py</a></p><p>or just</p><p>cd C:\Users\celin\OneDrive - Singapore Polytechnic\Desktop\AIML\Pancakes_doughnuts</p><p>conda activate myenv </p><p>streamlit run pandou_<a rel="noopener noreferrer nofollow" href="http://app.py">app.py</a></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-01 17:01:25 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3042515333</guid>
      </item>
      <item>
         <title>CH4.1  Computer vision</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3042777901</link>
         <description><![CDATA[<p>-- COMPUTER VISION --</p><p>OCR -&gt; Optical Character Recognition</p><p>Types:</p><ul><li><p>Image classification</p><ul><li><p>single image with 1 label for whole image</p></li></ul></li><li><p>Semantic segmentation</p><ul><li><p>no labels, partitions into multiple regions and labels pixels with different labels based on category</p></li></ul></li><li><p>Instance segmentation</p><ul><li><p>identifies boundaries of object from image segmentation</p></li></ul></li><li><p>Image classification with localization</p><ul><li><p>assigns bounding box around single object and labels it</p></li></ul></li><li><p>Object recognition</p><ul><li><p>outputs class labels &amp; class probabilities of object prediction if object is present but not where the object is</p></li></ul></li><li><p>Object detection</p><ul><li><p>assigns bounding box around multiple object and labels it</p></li></ul></li><li><p>Pattern recognition</p><ul><li><p>detects and identifies repeated shapes colors other visual indicators </p></li><li><p>movement, OCR, medical imaging recognition etc</p></li></ul></li><li><p>Facial recognition</p><ul><li><p>identify multiple faces, key facial attributes, emotional state, headwear etc</p></li></ul></li><li><p>Edge detection</p><ul><li><p>initial step for object recognition</p></li><li><p>identifies boundaries of objects using changes in brightness and intensity levels</p></li></ul></li><li><p>Feature matching</p><ul><li><p>compares features of images that differ orientation perspective lighting sizes and color</p></li><li><p>auto object tracking, £D object reconstruction, robot navigation, indexing use case etc.</p></li></ul></li></ul><p>Vision API-pre-built ML models</p><ul><li><p>image classifiers use DNN or CNN</p></li><li><p>pre-built ML API</p><ul><li><p>fastest -&gt; great starter</p></li><li><p>uses less new inputed data</p><ul><li><p>Vision API - google image dataset (logo, face detection, object, printed hadwritten text and builds metadata into imgae catalog)</p></li><li><p>Speech-2-Text - Youtube captions</p></li><li><p>Translation API - parallel text language translation</p></li><li><p>images videos &amp; text data already there just need to "mine" the text</p></li><li><p>video intelligence API - run videos through for labeling</p></li></ul></li></ul></li><li><p>BigQuery</p><ul><li><p>structured data already stored in Big Query -&gt; second fasted</p></li><li><p>built in SQL, linear logistic regression models</p></li><li><p>cannot help with computer visions tasks</p></li></ul></li><li><p>AutoML Vision</p><ul><li><p>codeless -&gt; google cloud console</p></li><li><p>own defined labels to train ML models</p></li><li><p>link or upload training set for custom</p></li><li><p>human labeling program</p></li></ul></li><li><p>Custom models</p><ul><li><p>custom lol needs a buck ton of data</p></li></ul></li><li><p>start simple -&gt; add complexity when needed</p></li></ul><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-02 01:37:36 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3042777901</guid>
      </item>
      <item>
         <title>CH4.2 Computer vision</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3043260108</link>
         <description><![CDATA[<p>-- CUSTOM TRAIN Linear &amp; DNN --</p><p>Linear Model</p><ul><li><p>work well for both binary and multiclass classification</p></li><li><p>SoftMax or sigmoid layers help ensure linearity</p></li><li><p>predicted Y = Weights * sum of inputs + bias</p></li><li><p>bias -&gt; difference between average prediction &amp; correct value</p></li><li><p>images represented as pixels of 2D arrays of numbers</p></li><li><p>image class model use matrix-vector product taking multiple outputs inputs and parameters</p></li><li><p>linear model every input is connected to every output</p></li><li><p>fully connected -&gt; dense layer</p></li><li><p>input layer not counted</p></li><li><p>paramters: height x Width x Nclasses + Nclasses</p></li></ul><p><br/></p><p>Reading Data</p><ul><li><p>JPEG or PNG standard format decoding by:</p><ol><li><p>Read -&gt; construct dataset from data in memory contents as are (no parsing) use img = <a rel="noopener noreferrer nofollow" href="http://tf.io.read">tf.io.read</a>_file('filename')</p></li><li><p>Decode -&gt; convert input bytes string into uint8 tensor using tf.image.decode_jpeg(img, channels = X)</p><ul><li><p>encoded images represented by scalar string tensors</p></li><li><p>decoded -&gt; 3-D uint8 tensors of shape [height, width, channels]</p></li><li><p>grey scale -&gt; 1 channel, RGB -&gt; 3 channels</p></li></ul></li><li><p>Convert -&gt; 3D uint8 of image RGB intensities to float in the [0,1] range using img = tf.image.convert_image_dtype(img, tf.float32)</p></li><li><p>Resize -&gt;use new_img = tf.image.resize(img, new_width, new_height) or crop to desired size or pad data with 0s</p></li></ol></li><li><p>Tensor - mathematical objects defined by num of directions &amp; dimensionality</p><ul><li><p>scalar -&gt; zero-rank tensor</p></li><li><p>vector -&gt; first rank tensor</p></li></ul></li><li><p>visualising image data exploration using Matplotlib to understand data</p><ul><li><p>display image use img = read_and_decode(filename, [height, width]) function and plt.imshow(img.numpy())</p></li><li><p>imshow() creates 2D numpy array need numpy to convert tensor image into numpy array</p></li></ul></li><li><p>efficient input pipeline</p><ol><li><p>Reading entire dataset use <a rel="noopener noreferrer nofollow" href="http://tf.data">tf.data</a>.Dataset</p></li><li><p>dataset transformation pre-processing</p></li><li><p>iteration dataset to process elements -&gt; streaming fashion, memory efficent (dataset no need fit into memory)</p></li></ol></li><li><p>list of all images use <a rel="noopener noreferrer nofollow" href="http://tf.io">tf.io</a>.gfile.glob("file_location")</p></li><li><p>label images</p><ol><li><p>tf.strings.regex_replace function to remove the prefix</p></li><li><p>label = tf.strings.split(basename, '/')[0] function to get the class name.</p></li></ol></li><li><p>process records TFRecordDataset</p></li><li><p>create dataset of files matching a pattern use <a rel="noopener noreferrer nofollow" href="http://tf.data">tf.data</a>.Dataset.list_files</p></li><li><p>read fixed-length records from binary files and create each record an element of the dataset, use <a rel="noopener noreferrer nofollow" href="http://tf.data">tf.data</a>.FixedLengthRecordDataset()</p></li><li><p>decode_csv(csv_row) -&gt; extract filename to read img, return img &amp; label representation (not hot-encoded)</p></li><li><p>map(decode_csv).batch(10) -&gt; handles each read line</p></li><li><p>batched as optimizer class expects it (batch both training and evaluation)</p></li></ul><p><br/></p><p>Implementing linear models for image classification</p><ul><li><p>increase complexity till performance criteria are met</p></li><li><p>simpler models -&gt; less likely overfitting</p></li><li><p>train NN opp direction by choosing a large model to interpolate data then do regularization</p></li><li><p>high level keras instead of low level tensorflow more convenient</p></li><li><p>keras</p><ul><li><p>highly productive focus on DL</p></li><li><p>core structure layers &amp; models</p></li><li><p>tf.keras -&gt; sequential model (list of layers outputs connected to next layer input) grps linear stack of layers -&gt; no sequential if multiple input types concurrently</p></li></ul><ol><li><p>Define &amp; create model</p><ul><li><p>Sequential([ tf.keras.layers. Flatten(input_shape=(IMG_HEIGHT, IMG_WIDTH, 3)), tf.keras.layers. Dense(len(CLASS_NAMES)) ]) -&gt; linear model, each image is flattened by unstacking its pixels.</p></li><li><p>outputs are a weighted sum of input pixel values</p></li><li><p>no weights when model is created, initialised only when built &amp; exposed to input data then have weights or pass input_shape in first layer</p></li><li><p>hence implicit  input layer expects 3D img tensor </p></li><li><p>model created initialized no weights, until built &amp; exposed to input data</p></li><li><p>Flatten layer (reformat) -&gt; 3D image tensor as an input &amp; flattens (unstacking rows of pixels in the image and lining them up) to same number of values 1D array</p></li><li><p>Dense layer -&gt; dense operation cal output as activation of weighted ave of flattened input pixel added by bias -&gt; activation function used to determin output of equation</p></li><li><p>Activation function -&gt; determine output of equation by maping resulting logistic values between range probability</p></li><li><p>Softmax -&gt; converts vector to probability distribution (exponentiates its inputs then normalisation) keeping relative order for valid probability distribution</p></li></ul></li><li><p>compile model to configure training (optional print string summary of network)</p><ul><li><p>Optimizer -&gt; how the model is updated based on data &amp; lossfunction</p><ul><li><p>e.g. Adam optimisation: stochastic gradient descent</p></li></ul></li><li><p> Loss function -&gt; measures accuracy of model during training, minimize this for accurate</p><ul><li><p>tells optimizer when its moving in right or wrong direction</p></li><li><p>computes quantity to minimize in keras model</p></li><li><p>2 or more label class classification -&gt; use tf.keras.losses.SparseCategoricalCrossentropy() -&gt; provide labels as integer</p></li><li><p>one-hot representation to provide labels, use the CategoricalCrossentropy loss</p></li><li><p>translate for business user meangingful</p></li></ul></li><li><p>Metrics -&gt; monitor training &amp; testing steps</p><ul><li><p>areas for improvement in training data</p></li></ul></li><li><p>model.complie() for configuration</p></li><li><p>model.summary() -&gt; display model contents</p></li></ul></li><li><p>Call <a rel="noopener noreferrer nofollow" href="http://model.fit">model.fit</a> -&gt; train model for a fixed epoch (optional evaluate the performance)</p><ul><li><p>training and validation datasets</p></li><li><p>evaluate model by plotting history of loss &amp; error metrics</p></li><li><p>callback -&gt; object that perform action at various stages of training</p><ul><li><p>e.g. History callback, history.history.keys() -&gt; records training metrics per epoch as loss, accuracy, validation loss, or validation accuracy</p></li><li><p>looking for smooth curve decent validation loss curve, else, training parameters (batch size, optimizer, learning rate, loss function) needs improving  </p></li><li><p>insight for slope -&gt; speed of convergence over epoch, status of convergence &amp; overtraining</p></li></ul></li></ul></li><li><p>Generate prediction for input samples using model.predict()</p><ul><li><p>model.predict() expects a batch of images, so you need to reshape the image tensor as a batch consisting of only one image</p></li><li><p>Logits -&gt; predicted confidence values -infinity to +infinity</p></li><li><p>predicted label is the one with most confidence</p></li><li><p>convert logits to probability by applying softmax, tf.math.softmax</p></li><li><p>evaluate:</p><ul><li><p>accuracy - fails when one of the classes in the dataset is represented by a very rare example</p></li><li><p>Plotting predictions -&gt; what the model has learned, plot predictions of model on a few images from the evaluation dataset by defining a custom plot_predictions() function must be batch data</p></li></ul></li></ul></li></ol></li><li><p>Functional API -&gt; handle model with multiple inputs or outputs shared layers, non-linear topology</p></li></ul><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-02 10:06:16 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3043260108</guid>
      </item>
      <item>
         <title>CH4.3 Computer Vision</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3043276411</link>
         <description><![CDATA[<p>DNN with dropout and batch normalization</p><ul><li><p>DNN -&gt; many hidden layers stacked together for activation to get better results</p><ul><li><p>requires more data points to improve accuracy</p></li><li><p>improve by adding regularization, increasing amount of dataset, change learning rate or apply early stop</p></li><li><p>Improve with dropout layers</p></li><li><p>Improve with batch normalisation</p></li><li><p>not affected by the pixel randomization, because the data is not structured hierarchically</p></li><li><p>DNN has convolutional &amp; pooling - sequencing, combining them with traditional neural network architecture improves the performance of image recognition systems</p></li></ul></li><li><p>NN -&gt; input layer &gt; hidden layer &gt; output layer = linear network + more dense layers</p><ul><li><p>feature engineering responsibility of model</p></li></ul></li><li><p>layer = nodes a bunch = nodes in one layer connected to another node in the next layer with its own weight = each node own linear regression model, composed of input data, weights, a bias (or threshold), and an output.</p></li><li><p>input layer’s -&gt; nodes take the values of the input features</p></li><li><p>output layer -&gt; one unit for each value that the network outputs</p></li><li><p>hidden layer -&gt; trainable weights not i/o layer</p></li><li><p>wrapping multiple layers - creates more linear equation, need non-linera connected as well for neural network</p></li><li><p>Activation function separates linear from NN</p><ul><li><p>non-linear component in the form of an activation function identifies non-linear relationship</p></li></ul></li><li><p>Rectified Linear Unit (ReLU)</p><ul><li><p>help NN learn non-linear states with visual inputs</p></li><li><p>return 0 if input negative but returns the value of positive magnitude</p></li></ul></li></ul><p>-- CNN --</p><p>Convolutional Neural Network</p><ul><li><p>multilayered NN called the neocognitron inspired by brain's simple (extracts local feature) and complex cells (extracts deformation / local shift) -&gt; recognize patterns by learning shapes</p></li><li><p>LeNet (CCN structure) -&gt; handwriting recognition by aggregating simpler features into progressively more complicated features</p></li><li><p>AlexNet won annual ImageNet competition for labeling pictures with increased accuracy</p></li><li><p>CNN standard for computer vision</p><ul><li><p>three layers -&gt; convolution, pooling, fully connected</p></li><li><p>Convolutional layer detect patterns in multiple subregions of the input field by using receptive fields to learn parameters</p></li></ul><ul><li><p>to learn a hierarchical structure based on locally correlated elements on visual inputs &amp; audio, time series, signal data</p></li><li><p>hierarchy -&gt; how pixels are placed next to each other vital in CNN</p></li><li><p>reduces need for feature engineering and increase performance</p></li><li><p>Weights of general-purpose filters to be learned during training itself</p></li><li><p>Input &gt; Convolution &gt; Pooling &gt; Convolution &gt; Pooling &gt; Fully connected &gt; Output</p></li></ul></li><li><p>MPs = megapixels -&gt; smartphone screen 12-16 MPs, too many weights cos of DNN density</p></li></ul><p>Understanding Convolutions</p><ul><li><p>convolution -&gt; sliding kernel across an image -&gt; mathematical combination of two functions to produce a third function -&gt; merge 2 input sets for collection of input elements</p><ul><li><p>where the model learns</p></li><li><p>detect horizontal edges or brighter or darker spots</p></li><li><p>0 ignore, +num brighter bigger magnitude, -num darker bigger magnitude</p></li></ul></li><li><p>processing a group of pixels that are located close to each other</p></li><li><p>1-dimensional CNNs are used on time series, audio, and text data, </p></li><li><p>3-dimensional CNNs are mostly, 3D image data such as video, magnetic resonance imaging (MRI), and computerized tomography (CT) data</p></li><li><p>2D CNN image classification (greyscale) 3D for GGB stacked </p></li><li><p>Kernels -&gt; building blocks of CNN to extract right and relevant features from inputted data, parameter-sharing concept to CNNs</p><ul><li><p>weights or numbers in kernel represent the feature to detect</p></li></ul></li><li><p>2D CNN -&gt; slides along 2 dimensions of the data</p></li><li><p>each square 5x5 so 25 input values dataset or 25 weights associated with kernel, each pixel value is multiplied by the corresponding weight</p></li><li><p>convolved feature -&gt; convolution operation sum of products</p></li><li><p>feature map -&gt; weight each square from shared kernel's sliding window across image in both directions</p></li><li><p>if square kernels are used, expect output shape smaller </p></li><li><p>TPU GPU - fast - compute the values of the convolution operation for all positions of the convolution kernel in parallel</p><p><br></p></li></ul><p>CNN Model Parameters</p><ul><li><p>ML model parameters -&gt; values learned from training data during training used to determine input data transformation into predicted output</p><ul><li><p>output image width = ( (input image width - kernels size width + 2*Padding )/ stride ) + 1 -&gt; O = ( (I - K + 2P) / S ) + 1</p></li><li><p>Number of filters - number of independent filters to apply to the input</p><ul><li><p>number of output image channels = number of filters</p></li></ul></li><li><p>Number of input channels - number of input image channels</p></li><li><p>Kernel size - is dimension of a filter, pick a kernel size that is used across all filters</p></li><li><p>Strides - the size of step the filter slides across the input image (default size is 1 pixel both directions)</p><ul><li><p>larger step will skip input pixels produce Fewer output values, Reduce computation required</p></li><li><p>too high lose data, reduce output dimension</p></li></ul></li><li><p>Padding - maintain the same size across the input and the output of the convolutional layer by adding border around input value using 0s</p><ul><li><p>thickness depends on size of kernel</p></li><li><p>keras has bulit in calculations</p></li><li><p>padding has same or valid type</p></li></ul></li><li><p>Activation - specifies the name of the activation function you want to apply after performing the convolution for non-linearity</p></li></ul></li><li><p>trainable parameters increase as complexity increases</p><ul><li><p>Convolution layer parameters -&gt; calculate learnable para by multiplying </p><ul><li><p>((width of filter x height of filter x prev layer num of filters) + 1 the bias term ) x current num of filters</p></li></ul></li><li><p>Pooling layer -&gt;0 parameters, calculates specific num no para</p></li><li><p>Fully connected layer -&gt; every node is fully connected to every other neuron on layer most parameters</p><ul><li><p>((current layer neurons (c) <em> previous layer neurons (p))+1</em> current layer neurons (c))</p></li></ul></li></ul></li><li><p>tf.keras.layers.Conv2D() -&gt; convolutional layer use relu for activation function</p><ul><li><p>relu popular as it does not activate all nodes at the same time</p></li></ul></li><li><p>4D tensors are expected as inputs and output of convolutional layer [batch, height, width, channels]</p></li></ul><p><br></p><p>Working with Pooling layers</p><ul><li><p>Pooling -&gt; reduce the dimensionality of the previous input or hidden layer</p></li><li><p>v num of para to learn, v the amount of computation network performs</p></li></ul><ol><li><p>Max Pooling - returns the maximum value out of all the input data values passed to a kernel used in combination with the convolutional layer</p><ul><li><p>maximizes reduction of dim, no weights, no parameters changed</p></li><li><p>tf.keras.layers.MaxPooling2D(pool_size(), ...)</p></li></ul></li><li><p>Average pooling - calculate the average value for each block on the feature map</p><ul><li><p>less extreme output than max pooling</p></li></ul></li><li><p>Global average pooling</p></li><li><p>Min pooling</p><p><br></p></li></ol><p>CNN on Vertax AI with pre-built TF Container using Vertex Workbench</p><ul><li><p>dense too many weights convolutional channels less weights</p></li><li><p>separate an image’s features from its dimensions</p></li></ul><p><br></p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-02 10:34:55 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3043276411</guid>
      </item>
      <item>
         <title>CH7 Recursive</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3043760527</link>
         <description><![CDATA[<p>recursive - method that calls itself again &amp; again</p><ul><li><p>must have a method to stop recursive</p></li><li><p>if recursive function is called in itself with other instructions below it, the unrun instructions below will be pushed into stack (first in last out)</p></li><li><p>Factorial use recursive nature</p></li><li><p>can stop using general (reducing to smaller verssion of itself) or base case (solution obtained directly &amp; stop)</p></li><li><p>Tower of Hanoi</p></li><li><p>Fib num</p></li><li><p>Big O notation</p><ul><li><p>drop constants, only interested in trends</p></li><li><p>for loop is linear -&gt; O(n)</p></li><li><p>only capture fasting growing trend</p></li><li><p>n^x , x being the number of nested for loops -&gt; quadratic e.g. O(n^x)</p></li><li><p>constant e.g. O(1)</p></li><li><p>function of for loop log -&gt; O(log2n)</p></li></ul></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-03 01:17:24 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3043760527</guid>
      </item>
      <item>
         <title>CH4.4 Computer vision</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3044502262</link>
         <description><![CDATA[<p>-- DEALING WITH IMAGE DATA --</p><p>Preprocessing Image Data</p><ol><li><p>create Dataset - training dataset</p><ul><li><p>collection method to get data - internal resources or 3rd party</p></li><li><p>validate &amp; annotate dat</p></li></ul></li><li><p>Reading the dataset - validate data into model</p><ul><li><p>csv not recommended only standard img</p></li><li><p>slow reading each img file</p></li><li><p>use tf.records - fast I/O operation</p></li><li><p><a rel="noopener noreferrer nofollow" href="http://tf.data">tf.data</a>.TFRecordDataset build complex input pipelines from simple, reusable pieces</p></li></ul></li><li><p> Preprocessing dataset - img tensors have expected shape for input layer, keras preprocessing layers automatically applied durring prediction</p><ul><li><p>Resizing - downsizing img increase efficency, convolution faster on less px, tf.image.resize(), must keep aspect ratio,avoid distortions use tf.image.resize_with_pad or learned resizers</p></li><li><p>Converting between color spaces</p></li><li><p>Cropping</p></li><li><p>Flipping</p></li><li><p>Rotating &amp; Transposing</p></li><li><p>Segmentation </p></li><li><p>Compress</p></li></ul></li></ol><p><br></p><p>Model Parameters &amp; Data scarcity Issue</p><ul><li><p>more complex model, more para, need more data</p></li><li><p>insufficient data:</p><ol><li><p>Data Augmentation - creating more data</p><ul><li><p>Instead of picking a random point in feature space, you can pick points strategically</p></li><li><p>points in regions that are homogeneous with respect to class</p></li><li><p>unstructured data, these sorts of neighborhoods don’t exist</p></li><li><p>determining which assumptions your data will support</p></li><li><p>think about how the transformation will affect the model’s ability to learn and the sources of information it requires to do its task</p></li><li><p><a rel="noopener noreferrer nofollow" href="http://Dataset.map">Dataset.map</a> to make augmented datasets</p></li><li><p>input elements are independent of each other, the preprocessing can be parallelized across multiple processors</p></li><li><p>train the model longer whenever you augment data, due to the increase in data size</p></li></ul></li><li><p>Transfer learning - making the model more data efficient, thus reducing its need for data</p><ul><li><p>initializing the parameters with better values</p></li><li><p>journey through weight space, optimizer looks for</p><p>best values for the weights in the model to minimize the expense of data and time </p><ul><li><p>by training from scratch - too long time</p></li><li><p>source model - abundance of data and a similar task and then transfer this model to our task</p></li></ul></li><li><p>shape errors if your labels aren’t the same shape as the ones used to train the model</p></li><li><p>isn’t a 1:1 match between each of your classes and those on source model's prior training might actually undermine performance.</p></li><li><p>replace them with newly initialized parts that are related to your specific use case</p></li><li><p>layers near output most closely aligned to source task</p></li><li><p>make source model weights trainable if dataset small, NN not overfit</p></li></ul></li></ol></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-03 17:00:02 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3044502262</guid>
      </item>
      <item>
         <title>tell me about yourself</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3053813241</link>
         <description><![CDATA[<ul><li><p>Good morning I am celine chan from Singapore Polytechnic computer engineering  Y3 poly student specialising in computing applications</p></li><li><p>Applying domain skills skills for application development through various projects like </p></li><li><p>I have a passion for applying technology to empower communities</p></li><li><p>Taking the self initiative to ideate solution and join hackatons.</p></li><li><p>One of the most memorable was the NAPROCK JAPAN PROCON where my team and I prototyped and pitched a peer support mental health application</p></li><li><p> for youths to form and maintain connections </p></li><li><p>using Kotlin in Android Studio and scalable Firebase storage</p></li><li><p>Additionally, as a SPOT events &amp; welfare exco, </p></li><li><p>I take pride in organising enjoyable and informative events for fellow SPOTies by applying my organising, communication and hosting skills</p></li><li><p>So, I look forward to being able to collaborate with you to develop application ideas for UI &amp; UX on your platform that users will enjoy using.</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-15 17:18:48 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3053813241</guid>
      </item>
      <item>
         <title>CH5.1 NLP</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3054741900</link>
         <description><![CDATA[<p>Intro 2 NLP application:</p><ul><li><p>text 2 speech / speech 2 text</p></li><li><p>text classification (predict label to doc, sentiment analysis e.g. rating based on comments, spam identification, topic of content)</p></li><li><p>entity extraction (relevent specifics like topic, date, location)</p></li><li><p>machine translation (gg translate 133 languages)</p></li><li><p>interactive conversation (google assistant interprets intentions to conduct conversation)</p></li></ul><p><br/></p><ul><li><p>end 2 end platform via VertexAI</p><ul><li><p>autoML - no code </p></li><li><p>custom training - code based + TensorFlow libraries</p></li></ul></li><li><p>NLP onto gg search, 10 years developing and applying</p><ul><li><p>word2vec breakthrough neural network in text representation</p></li><li><p>Attention mechanism - identified the most relevant section</p></li><li><p>Transformers -&gt; Pre-trained language models</p></li><li><p>BERT (Bidirectional Encoder Representations from Transformers)</p></li><li><p>T5 </p></li><li><p>PaLM (Pathways Language Models)</p></li></ul></li></ul><ul><li><p>Smart Reply response (Gmail)</p></li><li><p>Auto summary (google docs , chat, meet, workspace)</p></li><li><p>NLP = linguistics + AI</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-16 13:49:33 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3054741900</guid>
      </item>
      <item>
         <title>CH8</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3055129455</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2024-07-17 01:37:19 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3055129455</guid>
      </item>
      <item>
         <title>CH5.2 NLP</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3059204245</link>
         <description><![CDATA[<p>-- NLP ON GG CLOUD --</p><p>NLP is</p><ul><li><p>computer to understand human language</p></li><li><p>using unlimited mem (cloud store) &amp; comp power (Tensor Processor Unit)</p></li><li><p>input (natural human language text or speech) &gt; process (text representation &gt; Process method) &gt; output (Text classification, entity extraction, machine translate, interactive conversation)</p><ol><li><p>text representation -&gt; translating HumLang to CompLang</p></li><li><p>Process method</p><ul><li><p>Rule-based reasoning -&gt; action from hand-coded rules e.g. dictionary lookup</p></li><li><p>ML -&gt; learn the rules by itself (more scalable) </p></li></ul></li></ol></li><li><p>NLP is multidisiplinary</p><ul><li><p>linguistics</p></li><li><p>comp sci</p></li><li><p>AIML</p></li><li><p>stats</p></li></ul></li><li><p>NLP uses sequential models</p><ul><li><p>one to sequence -&gt; one input is passed in, sequence output generated (e.g. image captioning - image in sentence out)</p></li><li><p>sequence to one -&gt; sequence in, one output generated (e.g. sentiment analysis - comment in 1 rating out)</p></li><li><p>sequence to sequence -&gt; sequence both in &amp; output (e.g. google translate)</p></li></ul></li></ul><p>History</p><ul><li><p>Before ML era 1940-2001 &gt; statistical reasoning / hard-coded</p></li><li><p>After ML era</p><ul><li><p>NLP models</p><ul><li><p>NN to predict next word given previous word</p><ul><li><p>RNN recurrent neural network</p></li><li><p>LSTM long-short term memory - variant of RNN</p></li><li><p>attention mechanism - solves blockage problem of fixed-length encoding vector from prev models, ^ model performance by focusing on relevant task info only </p></li><li><p>large pre-trained language models - from attention mech architecture to pre-train large data and parameters to be fine-tunned after 4 specific tasks</p></li><li><p>triggered libraries like Transformers, BERT T5, GPT3, PaLM</p></li></ul></li><li><p>word embedding -&gt; vector to rep given words</p></li><li><p>text representation</p></li></ul></li><li><p>computer hardware -&gt; multi-tasked learning (solve&gt;1 task e.g. entity recognition, topic classification based on shared parameters set)</p></li></ul></li></ul><p>NLP architecture has 3 layers</p><ol><li><p>NLP solutions</p><ul><li><p>Horizontal solutions - any industry same problem</p><ul><li><p>Document AI (Doc AI) - NLP, OCR comp vision, pre-trained ML models for high-value, high-volume documents (processor is key)</p><ul><li><p>Input: unstructured data, emails, images, docs &amp; PDF files</p></li><li><p>Output: provides structures (identifies data fields e.g. name) to make the data easier to understand, analyze &amp; consume as JSON file</p></li><li><p>Can: convert img 2 text, classify documents, analyze extract entities, produce new insights</p></li><li><p>Doc (detailed instructions send processing request)&gt; Processor (choose/create)&gt; Human review (2 evaluate output accuracy/interpret result/solve overlooked issues) &gt; Database/analytics (further insights)</p></li><li><p>Processor existing </p><ul><li><p>general - starting point ready 2 use, extract simple information, low quality in comparison, most affordable</p></li><li><p>specialised - ready 2 use, handle 1 type of document (e.g. parse W2 forms/rental contracts), best quality most expensive</p></li></ul></li><li><p>Processor create (custom ~ build yourself/with GG) - parse specific format, prep data &gt; GG manage remaining work, tedious, Intellectual Property (IP) ownership only build it yourself</p></li><li><p>prediction end-point 2 send the doc</p></li><li><p>see NLP solutions @ 08:02</p></li></ul></li><li><p>Contact Centre AI (CCAI) - ^ operational efficiency with minimum AI skills by integrating 2 existing infra, key features:</p><ul><li><p>Automatic Speech Recognition (ASR) / Speech2Text (SST)  -&gt; capture speech &amp; process text </p></li><li><p>NLU -&gt; interpret human words &amp; identify intent</p></li><li><p>Talks via TTS (Text2Speech) from text response 2 audio stream or playback file </p></li><li><p>Personalization -&gt; branding, local region etc, generate diff voices, accents</p></li><li><p>one-click integration -&gt; telephony providers</p></li><li><p>Agents: Dialogflow, Agent Assist (AI help human agent),  agent Insights (analyse convo uncover meaning 2 suggest what needs improvements)</p></li></ul></li></ul></li><li><p>Vertical industry solutions - 1 industry </p><ul><li><p>Lending DocAI (auto mortgage doc processing 4 home loans)</p></li><li><p>Retail Search (retailers platform ^ search quality retain sales conversion instead of search abandonment)</p></li></ul></li></ul></li><li><p>NLP AI development platform</p><ol><li><p>pre-built API</p><ul><li><p>low expertise required, no data required, no tuneable hyperparameters, no training needed</p></li></ul><ol><li><p>Dialogflow API - platform conversational user interface using NLUnderstanding 2 analyse multiple inputs (text/audio) for an integratable human-like-agent engagement response (text/synthetic speech) on bots, apps, etc trained via past conversation/existing knowledge database deployed with 2 services Dialogflow:</p><ol><li><p>~ Essentials (ES) - standard small simple virtual call centre agent </p><ul><li><p>only 1 agent per proj</p></li><li><p>building blocks: flat structure of intents</p></li><li><p>console: text forms format mostly</p></li><li><p>quick &amp; affordable</p></li></ul></li><li><p>~ Customer experience (CX) - advanced large/complex agent </p><ul><li><p>up to 100 agents per proj, diff types like sales agents, marketing agents &amp; customer service</p></li><li><p>building blocks: graph structure flow &amp; pages</p></li><li><p>console: visual graph conversation path &amp; text forms 4 configuration</p></li><li><p>better scaling across multi dev teams</p></li></ul></li></ol><ul><li><p>Parts of Dialogflow</p><ol><li><p>Intent -&gt; topic e.g. reminder, weather, check acc bal - data from convo to build popular intents</p><ul><li><p>matches end user expression to intent via ~v simultaneousl, choosing best result</p><ul><li><p>rule-based reasoning - decision reasoning</p></li><li><p>ML matching - use model 2 learn from alot of convo to identify &amp; match keywords intents</p></li></ul></li></ul></li><li><p>The entities -&gt; specific details of topic, 4Ws, types ~v dictate how data is extracted</p><ul><li><p>system entities - pre-defined common data types like date, time, color, email</p></li><li><p>custom entities - match custom data e.g. vegtable entity 4 grocery store agent</p></li></ul></li><li><p>Flow of conversation -&gt; NL context e.g. they (find context on what the end user is referring 2) </p><ul><li><p>configure context by setting I/O context</p></li><li><p>Input context - control intent matching while context active likely match</p></li><li><p>Output context - control active contexts</p></li></ul></li></ol></li><li><p>End user (I/O) &gt; Dialogflow (integration/API services) &gt; Fulfilment (external API/webhook service/database)</p><ul><li><p>default agent response is static response</p></li></ul><ul><li><p>integration option more dynamic response through fulfilment of self defined actions</p></li></ul></li></ul></li><li><p>Natural Language API - NLU 4 sentiment analysis, entity analysis, entity sentiment analysis, content classification &amp; syntax analysis</p></li><li><p>Healthcare NL API - real time analysis of insights stored in unstructured medical text to machine readable data</p><ul><li><p>AutoML Entity Extraction 4 Healthcare - easy custom knowledge extraction models without needing coding skills </p></li></ul></li></ol></li><li><p>Vertex AI - AutoML</p><ul><li><p>low expertise required, small 2 med data set required, no tuneable hyperparameters, long training needed</p></li></ul></li><li><p>Vertex AI - custom training with Workbench</p><ul><li><p>high expertise required, med 2 large data set required, tuneable hyperparameters, med 2 long training needed</p></li></ul></li></ol></li><li><p>NLP AI foundations (base layer)</p><ul><li><p>google cloud infrastructure - auto, no need to manage and scale below tasks</p><ol><li><p>compute &amp; storage - decouples 4 independent scaling of resources</p><ul><li><p>compute breakthrough - TPU gg's Application-Specific-Integrated-Circuits (ASIC)</p><ul><li><p>accelerate ML workloads</p></li><li><p>^ efficency by tailored archie 2 meet computation needs in a domain (matrix multiplication ML)</p></li><li><p>cloud TPUs - integration across gg products 4 supercomputing</p></li></ul></li></ul></li><li><p>Networking &amp; security - base base</p></li></ol></li><li><p>Data engineering</p><ul><li><p>BigQuery - analyse uncover data insights</p></li><li><p>Dataflow - ingest process batch &amp; real-time data</p></li></ul></li></ul></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-23 02:23:21 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3059204245</guid>
      </item>
      <item>
         <title>CH5.3 NLP</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3059204575</link>
         <description><![CDATA[<p>-- NLP WITH VERTAX AI --</p><p>VERTAX AI</p><ul><li><p>production challenges (only 1/2 projects pass pilot phase)</p><ol><li><p>scalability</p></li><li><p>monitoring</p></li><li><p>continuous integration &amp; deployment</p></li></ol></li><li><p>ease of use challenges of current tools</p><ol><li><p>requires advancing coding skills</p></li><li><p>requires ML NLP expertise</p></li><li><p>No unified workflow (tools not compatible with each other)</p></li></ol></li><li><p>Vertex AI -&gt; the solution unified model creation, deployment, manage, over time &amp; @ scale</p></li><li><p>Pipeline</p><ol><li><p>Data readiness - upload data from wherever</p></li><li><p>Feature readiness - create features, for the processed data 2 put into model sharable via feature store</p></li><li><p>Training &amp; tunning hyperparameter - once data is ready, users experiment with diff models and adjust hyperparameters</p></li><li><p>Depolyment &amp; model  monitoring - pipeline 4 model 2 production by auto monitoring &amp; performing continuous improvements</p></li></ol></li><li><p>Benefits</p><ol><li><p>Seamless - user experience from uploading, prep, train 2 production</p></li><li><p>Scalable - MLOps 2 monitor &amp; manage ML production, auto scale storage comp power</p></li><li><p>Sustainable - artifacts &amp; features cand be reused &amp; shared </p></li><li><p>Speedy - 80% fewer codes</p></li></ol></li><li><p>Vertex AI Feature Store - centralised repository for org, storing, serving features 2 feed training models</p></li><li><p>Vizier -  tune hyperparameters in complex ML models</p></li><li><p>Explainable AI - interpret training performance &amp; pipeline 2 monitor ML production line</p></li></ul><p><br/></p><p>NLP WITH AUTOML</p><ul><li><p>no code, automate tunning hyperparameters &amp; comparing multiple models</p></li><li><p>quickly prototype  models &amp; explore new features of dataset before investing in dev</p></li><li><p>diff data type diff sol problem objective, accepts data type of</p><ol><li><p>img </p></li><li><p>tabular, </p></li><li><p>text (NLP most)</p><ul><li><p>list categories -&gt; Classification Model</p></li><li><p>label entities -&gt; Entity Extraction</p></li><li><p>identify prevailing emotion -&gt; Sentiment Analysis</p></li></ul></li><li><p>video</p></li></ol></li><li><p>AutoML can combine diff objectives to sol bussiness prob</p></li><li><p>using:</p><ol><li><p>Transfer learning -&gt; use pre-trained model with current smaller dataset or less computational power, higher accuracy</p></li><li><p>Vertex AI Neural Architecture Search -&gt; find optimal model through multiple comparision</p><p><br/></p></li></ol></li></ul><p>NLP WITH CUSTOM TRAINING (AI Workbench)</p><ul><li><p>full control of training &amp; deployment</p></li><li><p>Workbench - notebook tool has libraries</p></li><li><p>end2end workflow upload&gt;train&gt;deployment</p></li><li><p>determine env ML code uses</p><ol><li><p>pre-built container - fully built dependencies &amp; libraries (TensorFlow, PyTorch, Scikit-learn, XGBoost &amp; py code 2 work with the platform)</p></li><li><p>custom container - user defines exact tools needed</p></li></ol></li></ul><p><br/></p><p>NLP END2END WORKFLOW</p><ul><li><p>1 unified env 2 build custom ML models</p></li></ul><ol><li><p>Data Prep - upload new labelled or unlabelled data (NLP text from cloud storage or local machine) &gt; feature engineering (process data)</p><ul><li><p>label is a training target</p></li><li><p>Labelled</p><ul><li><p>Sentiment - manually added / paid label service Vertex console</p></li></ul></li><li><p>Unlabelled</p><ul><li><p>underlying pattern of texts and group similar documents - unlabelled, CLUSTER ANALYSIS</p></li><li><p>co-occurrence of pairs of words or phrases - LATENT SEMANTIC INDEXING (LSI)</p></li></ul></li></ul></li><li><p>Model Training - iterative training &amp; evaluation</p></li><li><p>Model Serving - deployment &amp; monitoring to move into production</p><ul><li><p>deployment types</p><ol><li><p>Endpoint - low latency, real-time results needed, deployed 2 endpoint bef use</p></li><li><p>Batch prediction - process accumulated data with single request, no immediate response</p></li><li><p>Offline prediction - outside cloud, model deployed in specific env</p></li></ol></li></ul></li></ol><ul><li><p>NLP workflow is iterative</p><ul><li><p>investigate the raw data</p></li><li><p>generate more useful features</p></li><li><p>data drifting -&gt; accuracy of your predictions suddenly drop</p><ul><li><p>check the data source &amp; adjust model parameters</p></li></ul></li><li><p>automated with MLOps</p></li></ul></li></ul><p><br/></p><p>-- TEXT REPRESENTATION --</p><p>Tokenization</p><ul><li><p>represent text in numeric format while retain meaning</p><ul><li><p>tabular data &gt; binary code &gt; num</p></li><li><p>img &gt; px &gt; num</p></li><li><p>audio &gt; wave &gt; amplitude</p></li></ul></li><li><p>feature engineering</p><ul><li><p>equipped with libraries like TensorFlow &amp; Transformers hide details of this step</p></li><li><p>no unified way to name steps - relate terms to specific functions</p></li></ul><ol><li><p>Raw Text -&gt; read in chunk of text</p></li><li><p>Tokenization -&gt; divide text chunk into language units / tokens</p><ul><li><p>strategies for diff lang</p></li><li><p>how comp read lang</p></li><li><p>types: character tokens, subword tokens (og word &amp; tense), word tokens, phrase tokens, sentence token (by punctuation)</p></li><li><p>use type based on model &amp; libraries</p></li></ul></li><li><p>Pre-processing -&gt; keep the main tokens &amp; remove punctuation</p><ul><li><p>Lowercasing - all text data to lower case</p></li><li><p>Stemming - root form remove tense (e.g. running to run)</p></li><li><p>Stopword removal - remove low information word (e.g. a, the)</p></li><li><p>Normalisation - 2 standard form (tmr to tomorrow)</p></li><li><p>API TensorFlow tf.keras.layers.TextVectorization</p><ul><li><p>maps text features to integer sequences\</p></li><li><p>includes preprocessing, tokenisation, vectorization</p></li></ul></li></ul></li><li><p>Text representation -&gt; transform tokens into representative num as vector, comp understands input</p><ul><li><p>Basic Vectorization</p></li><li><p>Word Embeddings</p></li><li><p>Transfer Learning</p></li></ul></li><li><p>NLP model Training</p></li></ol></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-23 02:23:32 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3059204575</guid>
      </item>
      <item>
         <title>where in 5 years</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3059281903</link>
         <description><![CDATA[<ul><li><p>widening -&gt; management</p></li><li><p>deepening -&gt; learning</p></li><li><p><br/></p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-23 03:38:16 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3059281903</guid>
      </item>
      <item>
         <title>Questions</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3059297358</link>
         <description><![CDATA[<ul><li><p>company culture</p></li><li><p>What are some important dates to take note of for workflow</p></li><li><p><br/></p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-23 03:57:34 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3059297358</guid>
      </item>
      <item>
         <title>lab 2 test notes</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3060972525</link>
         <description><![CDATA[<ul><li><p>object override toString so when object called auto prints string instead of object location</p></li><li><p>stack push or add has index, can use for loop, append or set text, removeFirst or removeLast</p></li><li><p>object class constructor this.var = var;</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-25 05:35:05 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3060972525</guid>
      </item>
      <item>
         <title>CH5.4 NLP</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3062505616</link>
         <description><![CDATA[<p>One-Hot Encoding &amp; Bag of Words</p><ul><li><p>problems:</p><ul><li><p>retain text meaning in num format through indication of words relation numerically (convey meaning)</p></li><li><p>text &gt; num &gt; ML model where input needs dense matrix vector or overfitting (efficient)</p></li></ul></li><li><p>Basic Vectorization</p><ul><li><p>one-hot encoding -&gt; encode each word by order into vector</p><ul><li><p>vector size = vocab_length x vocab_length </p></li><li><p>1 corresponds to word position rest 0</p></li><li><p>Pro: intuitive, easy 2 implement</p></li><li><p>Con: no relationship conveyed, sparse vector</p></li></ul></li><li><p>Bag-of-words -&gt; bag of vocab, vector of freq / occurrence token appears in sentence</p><ul><li><p>vector size = 1 x sentence_length</p></li></ul><ul><li><p>Pro: intuitive 2 implement, captures some semantic similarity (similar vocab likely similar meaning), matrix less sparse</p></li><li><p>Con: high dimensional sparse vector, no capture word relations</p></li></ul></li></ul></li></ul><p>Word Embeddings -&gt; convert word into its properties into dimensions</p><ul><li><p>convey meaning through vector space - where dis between similarity of word meanings are dimensions</p></li><li><p>low dimensional dense vectors</p></li><li><p>uses word2vec, GloVe &amp; FastText</p></li><li><p>Pro: low dimension dense vector, captures distribution &amp; meaning, vectors trained by NN no manual work</p></li></ul><p><br/></p><p>Word2Vec -&gt; context to predict words </p><ul><li><p>family of model architectures &amp; optimizations 2 learn word embeddings from large datasets</p></li><li><p>corpus - collection / body of text</p></li><li><p>expensive 2 use</p></li><li><p>only need import embedding from tensorflow keras</p><ul><li><p>embedding layer (lookup table maps one-hot encoded specific words 2 dense vector embeddings)</p></li></ul></li><li><p>Hyperparameters</p><ul><li><p>dimensionality (width)</p></li></ul></li></ul><ol><li><p>Continuous bag-of-word (CBOW) -&gt; predicts centre word given surrounding  context </p><ol><li><p>prepare data</p><ul><li><p>slide a window to find each token's surrounding context</p></li><li><p>((surrounding, word), centre_labelWord)</p></li><li><p>till centre word is last word</p></li><li><p>takes 2 words bfr &amp; aft centre word</p></li></ul></li><li><p>train a NN</p><ul><li><p>narrow NN -&gt; only 1 hidden layer</p></li><li><p>embedding matrix -&gt; E subscript(v*d)</p></li><li><p>E = weights</p></li><li><p>v = size of vocab</p></li><li><p>d = num of dimension (hyperparameter between 1-4, larger ^ refined, cost, required comp power)</p></li><li><p>embedded vector = input(one-hot encoding) * embedding matrix(word2Vec)</p></li><li><p>embedded vector has semantic meaning</p></li><li><p>sum of all embedded vector used for hidden layer (needs 1xd, E is randomly assigned to start)</p></li><li><p>feed result 2 softmax function for probability y (1xv vector) output layer prediction of the word being in that position</p></li><li><p>compare output layer with actual result &amp; backpropagation to adjust weights E till minimal diff between results</p></li></ul></li></ol></li><li><p>Skip-gram -&gt; predicts context (likelyhood of words appearing around centre word) based on centre word</p><ul><li><p>Data prep</p><ul><li><p>format (centre, surrounding), (centre, surrounding2)</p></li></ul></li><li><p>training</p><ul><li><p>skip-gram technique</p></li><li><p>input layer (one-hot encoded) </p></li><li><p>embedding matrix applied then feed into hidden layer</p></li><li><p>another E' weights layer get output layer (vector 2 predict 2000 surrounding context words)</p></li></ul></li></ul></li></ol><p><br/></p><p>Transfer Learning &amp; Reusable Embeddings</p><ul><li><p>TF Hub - tensorflow hub</p><ul><li><p>add pre-trained embedding 2 model via TF Hub</p></li><li><p>library of reuseable ml parts called modules</p></li><li><p>parts of ml model</p><ul><li><p>publish</p></li><li><p>discover</p></li><li><p>reuse</p></li></ul></li><li><p>pass url of the module to hub constructor (e.g. NNLM)</p></li><li><p>NNLM - Neural Probabilistic Language Model, a pre-trained word embedding</p><ul><li><p>TF hub has 50 dimensional NNLM = nnlm-en-dim50</p></li></ul></li><li><p>can be used as keras layer in a sequential or functional model</p></li><li><p>pass sentence in argument to get embedded vector</p></li><li><p>decide to make pre-trained embeddings trainable or not</p><ul><li><p>small dataset -&gt; freeze trainable (prevent overfitting)</p></li><li><p>large dataset -&gt; allow embedding, trainable = true</p></li></ul></li></ul></li><li><p>Re-useable embeddings (pre-trained embeddings)</p></li></ul><p><br/></p><p>-- NLP MODEL --</p><p>ANN</p><ul><li><p>Artificial Neural Network / shallow NN</p></li><li><p>input layer (text) &gt; hidden layer &gt; output (probability)</p></li><li><p>calculate input weighted sum &gt; activation function &gt; output weighted sum &gt; activation function &gt; cost function &gt; gradient descent &amp; backpropagation </p></li><li><p>activation function</p><ul><li><p>Sigmoid (0-1 binary)</p></li><li><p>Relu (neg to 0, pos stay)</p></li><li><p>Tanh (-1 to 1)</p></li><li><p>Softmax (probability distribution multi-class)</p></li></ul></li><li><p>Cost function</p><ul><li><p>MSE -&gt; regression problem</p></li><li><p>cross-entropy -&gt; classification</p></li></ul></li><li><p>gradient descent - search function, learn rate determines speed, epoch hyperparameter</p></li></ul><p><br/></p><p>TensorFlow</p><ul><li><p>open source high performance</p></li><li><p>end 2 end platform</p></li><li><p>Architecture</p><ol><li><p>tf.keras, <a rel="noopener noreferrer nofollow" href="http://tf.data">tf.data</a> -&gt; high-level, API distributed training</p></li><li><p>tf.layers, tf.losses, tf.metrics -&gt; NN API components</p></li><li><p>Core TF (py) -&gt; numeric processing</p></li><li><p>Core TF (C++) -&gt; wrapping containers &amp; custom operations</p></li><li><p>CPU, GPU, TPU, Android -&gt; diff hardware</p></li></ol></li></ul><p><br/></p><p>DNN</p><ul><li><p>more hidden layers than ANN</p></li><li><p>feed forward only 1 direction -&gt; no memory</p></li><li><p>use keras more convenient, has abstractions, building blocks, launch with high iteratin velocity</p><ul><li><p>core data structure - layers &amp; models</p></li></ul></li><li><p>sequential - output of prev layer input of nex</p><ol><li><p>define &amp; create model</p><ul><li><p>pre-processing layer - TextVectorization</p></li><li><p>word embedding - input to dense layers, define TF what embedding vector</p><ul><li><p>vocab_size + 1 -&gt; num of tokens</p></li><li><p>vocab_size -&gt; account for unknown words</p></li><li><p>Max_len -&gt; max words of article title in dataset</p></li></ul></li><li><p>Create a hidden layer -&gt; calculate the average of the embedded vectors and use it to represent a sentence BOW to lambda</p></li></ul></li><li><p>Compile the model</p><ul><li><p>optimizer</p></li><li><p>loss function</p></li><li><p>evaluation metrics </p></li></ul></li><li><p>Call <a rel="noopener noreferrer nofollow" href="http://model.fit">model.fit</a>()</p><ul><li><p>hyperparameters: epoch, embed dimension (num of features to represent word), patience (no of epoch aft no improve stop)</p></li></ul></li><li><p>evaluate the performance</p><ul><li><p>plot accuracy &amp; loss graphs</p></li></ul></li><li><p>model.summary() - model architecture</p></li><li><p>Generate a prediction</p><ul><li><p>returns probabilities of each class</p><p><br/></p></li></ul></li></ol></li></ul><p>RNN</p><ul><li><p>recurrent NN -&gt; recursive multiple DNN - has memory</p></li><li><p>loop carries the hidden states, which contain the memory, to the next time step of learning</p></li><li><p>repeat input / output / hidden till mirrors time t</p></li><li><p>inside each RNN Cell</p><ul><li><p>1 word at a time</p></li><li><p>1 pipline</p></li><li><p>has input (concatenation of ht-1), tanh (activation for relevant data filter), hidden layer (ht) &amp; output (feed to linear/dense layers)</p></li><li><p>hidden state ht is messenger carrying info to nex cell</p></li></ul></li><li><p>uses rmb prev words to predict nex word</p></li><li><p>Hidden States -&gt; retain infomation from past 2 futures</p></li><li><p>short term memory </p></li></ul><p>LSTM</p><ul><li><p>long short-termmemory</p></li><li><p>vanishing gradients -&gt; closer words have stronger effect on prediction than further words (RNN short term memproblem)</p></li><li><p>LSTM cell</p><ul><li><p>2 pipelines</p></li><li><p>1 short term, 1 long term</p></li><li><p>NN layer, pointwise operation, vector transfer, concatenate, copy</p></li><li><p>Gate -&gt; regulates flow of information - sigmoid function (0 forget the info entirely - 1 rmb info entirely) &amp; pointwise multiplication function to decide how much og pipline info to pass on to the nex iteration</p><ol><li><p>forget gate -&gt; get ht-1 + xt to decide what should pass on, then outcome vector * cell state Ct-1 updated to delete not needed info</p></li><li><p>input gate -&gt; 1st NN layer has 2 sigmoid functions filter info that must be added to the cell state, 2nd NN layer use tanh to create new candidate of cell state to long term mem</p></li><li><p>output gate -&gt; combines input, hidden state (short term mem) &amp; cell state (pipeline that allows data in a straight forward way) to decide what to output</p></li></ol></li></ul></li></ul><p>GRU</p><ul><li><p>gated recurrent unit</p></li><li><p>a variant of LSTM</p></li><li><p>merges cell state &amp; hidden state pipeline into 1 (combining short &amp; long term mem)</p></li><li><p>Reset Gate -&gt; determines how much info from past carried over</p></li><li><p>Update Gate -&gt; combines forget and input gate in LSTM to decide how much info should be forgotten &amp; rmb to pass to time step</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-28 10:05:17 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3062505616</guid>
      </item>
      <item>
         <title>CH5.5 NLP</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3065288169</link>
         <description><![CDATA[<p>-- ADVANCED NLP MODELS --</p><p>Encoder-Decoder architecture</p><ul><li><p>encoder - unrolled RNN/LSTM/GRU -&gt; enter 1st language</p></li><li><p>decoder -&gt; output translation of second language</p></li><li><p>softmax layer -&gt; model predictions too many weights</p></li><li><p>model training - gradients in affordable approximate way -&gt; sampled_softmax_loss() method to compute and return the training loss</p></li><li><p>architecture</p><ol><li><p>GO marks the beginning of the sentence</p></li><li><p>predictions - call embedding layer 2 convert words into embedding</p></li><li><p>unroll the RNN inputs - GRU</p></li><li><p>Y is a dense layer - conditional probability of each word in vocab</p></li><li><p>Beam search decoder -&gt; considers multiple alternatives at a time</p></li></ol></li></ul><p>Attention Mechanism</p><ul><li><p>to improve translation use ^</p><ol><li><p>passes more data (all hidden states) to the encoder</p></li><li><p>extra step bef producing output</p><ul><li><p>foucus on most relevant parts of input</p></li><li><p>multiples encoder's hidden state with its softmax score</p></li><li><p>amplifying high score hidden states vice visa</p></li></ul></li></ol></li><li><p>attention step - pass the context vector (hidden states &amp; H4 vector) feedforward NN trained jointly with the model indicating output word of time step</p></li><li><p>repeat</p></li></ul><p>Transformer</p><ul><li><p>input sentence &gt; embed each word &gt; multi-headed attention with respective weight metrics &gt; calculate attention QKV matrices &gt; concatenate for output same dims as final matrix</p></li></ul><ul><li><p>Transformers pre-trained models that represent words as vectors</p></li><li><p>vectors remain constant &amp; don’t change based on context</p></li><li><p>model learns how certain words are aligned to each other</p></li><li><p>built based on attention mechanism improves the performance</p></li><li><p>encoder (input sequence) &amp; decoder (representation for relevant task)5x</p></li><li><p>hyperparameters</p><ul><li><p>no of encoders stacks</p></li></ul></li><li><p>Encoders</p><ul><li><p>has different weights</p></li></ul><ol><li><p>self-attention:</p><ul><li><p>inputs first flow through encoder</p></li><li><p>look @ relevant words as encodes centre word in sentence</p></li><li><p>dependencies exist</p></li></ul></li><li><p>feedforward: </p><ul><li><p>expects 1 matrix per word - use concatenate * extra weights</p></li><li><p>same feedforward NN independently applied to each position</p></li><li><p>dependencies do not exist allowing parallelism</p></li><li><p>focus on different positions</p></li></ul></li></ol></li><li><p>Decoders</p><ol><li><p>self-attention</p></li><li><p>encoder-decoder attention</p><ul><li><p>helps decoder focus on relevant parts of input sentence</p></li></ul></li><li><p>feedforward</p></li></ol></li><li><p>after embedding the words in the input sequence the embedding vector flows through  the 2 layers of encoder</p></li><li><p>each word create QKV matrices by multiplying the embedding by three matrices trained during training process</p><ol><li><p>Query vector</p></li><li><p>key vector</p></li><li><p>value vector</p></li></ol><ul><li><p>vectors dims - 64</p></li><li><p>embedding &amp; encoder input/output dims - 512</p></li></ul></li><li><p>constant computation of multi-headed attention constant -&gt; architecture vectors don't have to be smaller</p></li><li><p>multiply by the softmax score to prep for sum up - keep intact focus words &amp; remove irrelevant words e.g 0.001</p></li><li><p>positional encoding -&gt; specific pattern 2 determine position, dist of each word in seqn</p></li></ul><p>BERT</p><ul><li><p>Bidirectional Encoder Representations from Transformers</p><ul><li><p>trained in 2 variations (12 base &amp; 24 large, encoder stacks), using wiki &amp; bookcorpus, one million steps, TPU</p></li></ul></li><li><p>used in gg search</p></li><li><p>benefits</p><ul><li><p>handle long input context</p></li><li><p>multi-tasked objective</p></li><li><p>both sentence-lvl &amp; token-lvl</p></li><li><p>fine-tunned for diff tasks</p></li></ul></li><li><p>BERT has more layers feedforward networks &amp; attention heads than transformers</p></li><li><p>trained on task:</p><ol><li><p>Masked language model</p><ul><li><p>sentences masked and model trained 2 predicts masked words </p></li><li><p>let k = 15% balance masking (too much limits learning, too little expensive)</p></li></ul></li><li><p>predict next sentence</p><ul><li><p>learn relationship between sentences &amp; predict next sentence (given a new sentence is that the nex one)</p></li><li><p>binary classification</p></li><li><p>Tokens fed into the model</p><ol><li><p>CLS - classification task objective</p></li><li><p>token embeddings - transform into vector representation of dims</p></li><li><p>segment embeddings [SEP] - separator distinguish inputs in a given pair to split sentences</p></li></ol></li></ul></li></ol></li><li><p>consists of a stack of transformers</p></li><li><p>fine-tune BERT for downstream tasks (quicker not from scratch)</p><ol><li><p>format input sentence as a single-packed sequence (e.g. classification or similarity)</p></li><li><p>add new output layer to pretrained model ()</p></li><li><p>choose fine-tunned model parameters or leave be based on amt of data</p></li></ol><ul><li><p>used for single sentence classification, sentence pair classification, question answering, tagging tasks, etc</p></li></ul></li></ul><p>Large Language Models</p><ul><li><p>large general-purpose pre-trained models, fine-tunned for specific purposes (e.g. lack resources, skills)</p></li><li><p>solve common problem tailored to fit industry</p><ul><li><p>text classifications</p></li><li><p>question answering</p></li><li><p>doc summarization</p></li><li><p>text generalisation</p></li></ul></li><li><p>benefits</p><ol><li><p>single model usable for diff tasks</p></li><li><p>fine-tune requires minimal filled data</p></li><li><p>performance continuously growing with data &amp; parameters</p></li></ol></li><li><p>PaLM - 540 billion parameters, leverages new pathway sys, orchestrates distributed computation for accelerators</p></li><li><p>29 common english NLP tasks</p><ul><li><p>NL interference</p></li><li><p>common sense reasoning</p></li><li><p>in-context reading comprehension</p></li><li><p>Question answering</p></li><li><p>winograd-style tasks</p></li><li><p>close and completion</p></li></ul></li><li><p>future trends of NLP:</p><ul><li><p>large language models fundamental for applications</p></li><li><p>scaling law (scaling model parameters most impt, then scaling data, training iterations)</p></li><li><p>business model change to rental downstream from upstream providers (cos training is resource intensive)</p></li><li><p>take adv of scalability, accessibility, mobility, security &amp; cost</p></li></ul></li><li><p><br/></p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-01 09:08:11 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3065288169</guid>
      </item>
      <item>
         <title>CH9 Graphs</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3067383168</link>
         <description><![CDATA[<ul><li><p>visit every vertex only once</p></li><li><p>non-linear data struture</p></li><li><p>vertices -&gt; node</p></li><li><p>edges -&gt; line</p></li><li><p>simple -&gt; no weights, bi-directional</p></li><li><p>weights - no on edges, directional - arrows</p></li></ul><ol><li><p>Breadth First Search</p><ul><li><p>queue</p></li><li><p>visited array</p></li><li><p>polling root's neighbours to find path</p></li></ul></li><li><p>Depth First Search</p><ul><li><p>stack (first in last out)</p></li><li><p>visited array</p></li><li><p>poll neighbours according to top of stack</p></li></ul></li></ol><p><br/></p><p>key words:</p><p>adjust, pop, poll, add, isEmpty, contains, size, Vertex, ArrayList, push, forEach(), ArrayDeque(), get(), label</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-05 03:11:38 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3067383168</guid>
      </item>
      <item>
         <title>CH8 Data Structures</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068415813</link>
         <description><![CDATA[<p>-- CONTAINERS --</p><ul><li><p>supported on java collections framework</p></li></ul><p>ArrayList</p><ul><li><p><br/></p></li></ul><p>LinkList</p><p>Stack</p><p>Queue</p><p>-- BINARY TREE --</p><p>-- BINARY TREE SEARCH --</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-06 05:20:11 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068415813</guid>
      </item>
      <item>
         <title>CH7 Recursive &amp; Big-O</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068416912</link>
         <description><![CDATA[<p>-- RECURSIVE --</p><ul><li><p>General Statement - calling recursive function further</p></li><li><p>Base Statement - condition where it stop further calling itself, solution obtained directly</p></li><li><p>all recursive can be implemented using iteration</p></li><li><p>takes up significant resources -&gt; incomplete ops stored in stack</p></li><li><p>only use when it's easier to understand</p><ul><li><p>tower of hanoi</p></li><li><p>Fibonacci num</p></li></ul></li></ul><pre><code>class TestRecursive {
 public static void main(String[] args) {
   shout(5);
 }
 public static void shout(int x) {
   System.out.println(x + “.AHHHHH!"); //out 5 to 1 
   if (x&gt;1) shout(x-1); //reducing version of self
   System.out.println(x + “.Cheeeew!");//1-5 aft ah
 }
}</code></pre><p><br/></p><p>-- BIG-O NOTATION --</p><ul><li><p>more iteration  more time complexity</p></li></ul><p>O(n) -&gt; linear</p><ul><li><p>unnested loops</p></li><li><p>xn, x = no. of loops</p></li></ul><p>O(n^2) -&gt; Quadratic</p><ul><li><p>nested loops</p></li><li><p>^x , x = no. of nested loops</p></li></ul><p>O(log2(n)) -&gt; Log</p><ul><li><p>for loop where i = i*2</p></li><li><p>binary Search worst case</p></li></ul><p>O(1) -&gt; Constant</p><ul><li><p>no loop same discreet no of operations</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-06 05:22:09 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068416912</guid>
      </item>
      <item>
         <title>Testing Padlet</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068418988</link>
         <description><![CDATA[<p>status</p><p>btn for links</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-06 05:24:58 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068418988</guid>
      </item>
      <item>
         <title>CH6 Java Collections Framework</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068432047</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2024-08-06 05:46:14 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068432047</guid>
      </item>
      <item>
         <title>CH5 Exceptions Abstacts &amp; Interface</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068444375</link>
         <description><![CDATA[<p>-- EXCEPTIONS &amp; CATCH --</p><ul><li><p>run-time error unexpected event causing termination</p></li><li><p>try-catch-finally handles exceptions</p><pre><code>try{
  //intended operation code
}catch (ArithmeticException e){ //api exception
  //output error message
  //can have more than 1 catch
} finally {
 //will always execute
}</code></pre></li><li><p>ArithmeticException -&gt; math error things</p></li><li><p>ArrayIndexOutOfBoundsException -&gt; index non-existent</p></li><li><p>NumberFormatException -&gt; wrong number format</p></li></ul><p><br/></p><p>-- THROW vs THROWS --</p><ul><li><p>throw used inside method to throw an explicit exception</p><p>e.g. MyClass() {throw new ArithmeticException("error msg"); }</p></li><li><p>throws used in method signature </p><p>e.g. MyClass() throws IOException{}</p></li><li><p>Hierarchy subclasses: Object &gt; Throwable &gt; Error, Exception</p></li></ul><p><br/></p><p>-- CHECKED UNCHECKED EXCEPTIONS --</p><ul><li><p>unchecked ~ -&gt; no compilation error</p><ul><li><p>RuntimeException</p><ol><li><p>NullPointException</p></li><li><p>ArrayIndexOutOfBoundsException</p></li><li><p>IllegalArgumentException</p></li><li><p>NumberFormatException</p></li><li><p>ArithmeticException</p></li></ol></li><li><p>Error</p><ol><li><p>LinkageError</p></li><li><p>VirtualMachineError</p></li><li><p>AWTError</p></li></ol></li></ul></li><li><p>checked ~ -&gt; compiler checks it</p><ol><li><p>SQLException</p></li><li><p>IOException</p></li><li><p>ClassNotFoundException</p></li><li><p>InvocationTargetException</p></li><li><p>AWTException</p></li></ol></li></ul><p><br/></p><p>-- ABSTRACT CLASS --</p><ul><li><p>abstract -&gt; method with signature only, no logic/implementation</p></li><li><p>used in related classes</p></li><li><p>contains @ least 1 abstract method</p></li><li><p>extend -&gt; </p><pre><code>public abstract class MyAbstract {
  MyAbstract() {}
  public void MyAbsMethod() {}
}

public class MyClass extends MyAbstract {
  public void MyAbsMethod();
  MyClass(){}
}</code></pre></li><li><p>can provide abstract/non-abstract methods</p></li><li><p>if class has &gt;=1 abstract class must declare abstract</p></li><li><p>can have final, non-final, static, non-static variables unlike interface</p></li><li><p>abstract method are methods in abstract class</p></li></ul><p><br/></p><p>-- INTERFACE --</p><ul><li><p>have methods &amp; data</p></li><li><p>can only have constants like static &amp; final variables, nothing else</p></li><li><p>usually static/default methods abstract (only signature) </p></li><li><p>cannot be instantiated</p></li><li><p>returm type methods using interface method must return the implemented object interface</p></li><li><p>enforces consistency - must provide implentation method</p></li><li><p>Define </p><pre><code>public interface MyInterface { 
  String MyMethod(); //method no logic
}</code></pre></li><li><p>implement</p><pre><code>public class MyClass implements MyInterface {
  String name;
  public String MyMethod(){
    return (name) //details
  }
}</code></pre></li><li><p>using interface implemented method to print name</p><pre><code>public class Test {
  public static void test(String[] args){
    MyClass x = new MyClass();
    x.name = "Celine";
    System.out.println(x.MyMethod()); //prints 
  }
}
// can implement MyInterface in other classes as well</code></pre></li><li><p>Default method - classes implementing interface can override default method </p><pre><code>default void methodName(){}</code></pre></li><li><p>implement can use multiple inheritance (while class can only extend 1 parent class)</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-06 06:01:17 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068444375</guid>
      </item>
      <item>
         <title>CH4 Inheritance Polymorphism ArrayList </title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068684762</link>
         <description><![CDATA[<p>-- INHERITENCE --</p><ul><li><p>extends</p></li></ul><p>-- POLYMORPHISM --</p><ul><li><p><br/></p></li></ul><p>-- CLASS OBJ --</p><p>-- METHOD OVERRIDING --</p><p>-- ARRAYS --</p><p>-- GENERIC CLASS --</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-06 11:47:12 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3068684762</guid>
      </item>
      <item>
         <title></title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3069425065</link>
         <description><![CDATA[<p>Mon - ECS Lab</p><ul><li><p>DO -&gt; 5G topic finish</p></li><li><p>DO -&gt; 5G slides</p></li><li><p>DO -&gt; IENT Reflections</p></li></ul><p>Tue</p><ul><li><p>DO -&gt; ECS Paper the second 1</p></li><li><p>DO -&gt; ECS Report</p></li></ul><p>Wed - 5GAIOT Presentation &amp; EST, ECS lab (test animation)</p><ul><li><p>DO -&gt; ECS Report</p></li></ul><p>Thur - ECS Demo, ECS paper</p><ul><li><p>DO -&gt; ECS Report</p></li></ul><p>Friday - IENT reflections, ECS Report</p><ul><li><p>DO -&gt; give Wen En Bday present</p></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-07 04:59:11 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3069425065</guid>
      </item>
      <item>
         <title>lab 3 </title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3069840694</link>
         <description><![CDATA[<p>linkedList</p><p>map</p><p>Binary search tree</p><p>recurssive</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-07 14:28:37 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3069840694</guid>
      </item>
      <item>
         <title></title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3070351851</link>
         <description><![CDATA[<p>lcd navigation</p><p>0x0A -&gt; A being the index so 17 = 0x11</p><p>0xcA -&gt; c second row, A ~^</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-08 03:36:49 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3070351851</guid>
      </item>
      <item>
         <title>line split</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072016133</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2024-08-10 06:51:51 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072016133</guid>
      </item>
      <item>
         <title>CH7 Trends</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072016232</link>
         <description><![CDATA[<p>-- 7 Key Tech Trends --</p><ol><li><p>Quantum Computing -&gt; complex parallel process</p></li><li><p>AIML -&gt; learn from data</p></li><li><p>Extended Reality XR -&gt; blending digital-physical world</p></li><li><p>IOT -&gt; interconnected devices collecting data</p></li><li><p>BlockChain -&gt; secure Decentralised connections</p></li><li><p>Edge Computing -&gt; process data closer to the source</p></li><li><p>Robotic Process Automation RPA -&gt; Automate repetition</p></li><li><p>5G -&gt; network speed bandwidth communication</p></li><li><p>MetaVerse -&gt; digital world digital objects / places</p></li><li><p>Digital Twin -&gt; replica of systems predictive </p></li></ol><p><br></p><p>Integrate trends that align and scale with business model</p><p><br></p><p>-- 10 5G Trends --</p><ol><li><p>OpenRAN -&gt; interoperability network slicing &amp; virtualisation</p></li><li><p>Network Slicing -&gt; multiple virtual networks on a single physical comp</p></li><li><p>Beamforming -&gt; strength signal &amp; reduce interference by directing wireless signals to specific devices</p></li><li><p>5G SA -&gt; with 5G core independently enhanced performance &amp; flexibility</p></li><li><p>Ultra Reliable Low Latency Communication URLLC -&gt; time critical applications</p></li><li><p>Phased Arrays Antennas -&gt; directs signal through multiple antennas improve strength capacity</p></li><li><p>Massive Machine Type Communication MMTC -&gt; many IOT devices with low power sparse transmission</p></li><li><p> Enhanced Mobile Broadband EMBB -&gt; increased data rate, performace</p></li><li><p>Carrier Aggregation -&gt; combines multiple freq bands increase data rate &amp; network capacity</p></li><li><p>Dynamic Spectrum Sharing DSS -&gt; simultaneous 4G 5G freq band optimising spectrum usage</p></li></ol><p><br></p><p>-- Beyond 5G --</p><ol><li><p>Intelligent mobility systems</p></li><li><p>mobility as a Service</p></li><li><p>dependable internet services</p></li></ol><p><br></p><ul><li><p>6G for machines efficiency</p></li><li><p>use AIML to plan &amp; optimise networks</p></li><li><p>support digitalisation virtualisation experience</p></li><li><p>6G at 110 Terahertz THz faster than 5G in gigahertz</p><ul><li><p>high freq broadband communication -&gt; high precision sensing capacity</p></li><li><p>problems:</p></li><li><p>rfic performence</p></li><li><p>path loss to atmosphere</p></li><li><p>high speed adc/dac</p></li></ul></li><li><p>Freq Divsion Duplex</p><ul><li><p>Freq DD - 3G</p></li><li><p>Time DD - 4G</p><ul><li><p>XDD -&gt; increase uplink</p></li></ul></li></ul></li><li><p>Full Duplexing -&gt; increase capacity</p></li><li><p>Network topology</p><ul><li><p>continuity of network connection services</p></li><li><p>optimization of network configuration</p></li><li><p>enhanced mobility support for network entities</p></li><li><p>NTN (non terrestrial network) &amp; HAPS (high altitude platform systems)</p></li></ul></li></ul><p><br></p><p>-- 5G Impact --</p><ol><li><p>Enhanced Connectivity -&gt; seamless network for devices to communicate, collaborate AIOT</p></li><li><p>Smart City -&gt; AIOT &amp; 5G respond to real time data optimize operations &amp; improve quality of life</p></li><li><p>Industry 4.0 -&gt; data from sensors, centralised AI, optimize production line efficiency, predict maintenance &amp;  reduce downtime</p></li><li><p>Retail -&gt; immerse targeted marketing supply chain efficency, real time data smart shelves RFID &amp; customer behaviour analysis </p></li><li><p>Transit -&gt; integration of 5G AIOT, v2v communication, optimize infrastructure less congestion, safer, sustainable</p></li><li><p>Healthcare -&gt; wearable devices send continous real time data to AI for early detection, proactive treaments &amp; personalised treament plans</p></li></ol><p><br></p><p>-- Regulations --</p><ol><li><p>Spectrum Allocation -&gt; policies &amp; exisiting spectrum usage to harmonise integration across regions</p></li><li><p>Infrastructure Regularisations -&gt; small cells &amp; base stations deployment based on zoning etc</p></li><li><p>Data Privacy &amp; Security -&gt; laws to prevent cyber risks</p></li><li><p>Interoperability -&gt; compatibility between exisisting devices need standardisation of  protocols &amp; interfaces</p></li></ol><p><br></p><p>-- Considerations --</p><ol><li><p>Privacy &amp; survillence</p></li><li><p>Bias &amp; discrimination</p></li><li><p>Job Displacement</p></li><li><p>Health &amp; environmental impacts</p><ul><li><p>electromagnetic radiation</p></li><li><p>end of life waste management</p></li></ul></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-10 06:52:19 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072016232</guid>
      </item>
      <item>
         <title>CH6 Business Models &amp; Opportunities</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072062331</link>
         <description><![CDATA[<p>-- </p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-10 10:15:01 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072062331</guid>
      </item>
      <item>
         <title>CH1 indroduction</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072411414</link>
         <description><![CDATA[<p>-- Evolution --</p><p>-- Benefits --</p><p>-- Edge Computing --</p><p>-- Network Slicing --</p><p>-- 4G limitations --</p><p>-- Massive IOT --</p><p>6Cs</p><ol><li><p>Collect data - sensors &amp; microcontrollers</p></li><li><p>Communicate - wifi module &amp; Acess Point</p></li><li><p>Connect - wired / wireless</p></li><li><p>Cloud - storage, server, aws, etc</p></li><li><p>Comprehend - analytics</p></li><li><p>Create - interfaces</p></li></ol><p>-- AIML --</p><p>-- </p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-11 10:35:02 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072411414</guid>
      </item>
      <item>
         <title>CH2 fundamentals</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072412756</link>
         <description><![CDATA[<p>-- RAT Technology --</p><ol><li><p>Beamforming</p></li><li><p>MIMO</p></li><li><p>OFDM</p></li><li><p>DSS</p></li><li><p>mmWave</p></li></ol><p>-- 3GPP --</p><ul><li><p>ALL Cloud &amp; service oriented core</p></li><li><p>session management, security, end devices, authentication &amp; traffic</p></li></ul><p>-- ALL CLOUD - Core Network Architecture --</p><ol><li><p>Software Defined Network</p></li><li><p>Network Functions Virtualization </p></li><li><p>Operations &amp; Mantainence</p></li><li><p>Edge Cloud</p></li><li><p>Regional &amp; Core cloud</p></li></ol><p><br></p><p>-- Service Oriented Core --</p><p>3 key factors</p><ol><li><p>Programmability</p></li><li><p>Flexible Architecture</p></li><li><p>Smart Pipes</p></li></ol><p>4 features</p><ol><li><p>Control User Plane Separation (CUPS)</p></li><li><p>Serviced-Based Architecture</p></li><li><p>Network Slicing</p></li><li><p>Cloud Native </p></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-11 10:40:41 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072412756</guid>
      </item>
      <item>
         <title>CH3 AIOT</title>
         <author>celinespnotes</author>
         <link>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072911872</link>
         <description><![CDATA[<p>-- AI layers --</p><ol><li><p>Self-Aware Machines</p></li><li><p>Theory of Mind</p></li><li><p>Limited Memory Machines</p></li><li><p>Reactive Machines</p></li></ol><p><br/></p><p>-- subsets --</p><p>AI&gt;ML&gt;DL&gt;CNN &amp; DNN &amp; Generative AI</p><p><br/></p><p>-- ML methods --</p><ol><li><p>Reinforced Learning -&gt; agent max out reward in uncertain simulation based on actions</p></li><li><p>Unsupervised Learning -&gt; patterns in unlabelled data</p><ul><li><p>clustering, anomaly detection, association mining, latent varible model</p></li></ul></li><li><p>Supervised Learning -&gt; classification &amp; regression</p><ul><li><p>linear regression, random forest, support vector machines</p></li></ul></li></ol><p>-- Cloud AIOT Integration Architecture --</p><p>Device Layer  &gt; Connectivity Layer &gt; Cloud Layer &gt; User Communication layer</p><p><br/></p><p>-- Edge AIOT Integration Architecture --</p><p>Collection Terminal Layer &gt; Connectivity Layer &gt; Edge Layer</p><p><br/></p><p>benefits:</p><ul><li><p>reduced network workload</p></li><li><p>Privacy</p></li><li><p>Real Time Response / early response</p></li><li><p>continous</p></li><li><p>low latency</p></li></ul><p><br/></p><p>-- </p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-12 06:14:03 UTC</pubDate>
         <guid>https://padlet.com/celinespnotes/rn3dy970yvuy9o9e/wish/3072911872</guid>
      </item>
   </channel>
</rss>
