











Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!












DATA COMMUNICATION SOCIETY – Taran2no Ma4eo Exam: 3 parts-> 1) theory exam, open ques8ons, 50% grade 2) day a?er test, coding test, 30% grade 3) project work in group, 20% grade, NO DEADLINE. Grades for each part remain forever. PORTARE COMPUTER + PORTARE APPUNTI PER ESAME (3 ore) 01.10. DATA, COMMUNICATION & SOCIETY Datafica8on: transforma8on of something into data, e.g. facial recogni8on, iden8fica8on through gate. It is becoming a fundamental infrastructure in our lives. What is data Data is the raw material of measurement. Kitchin’s defini8on: «the raw material produced by abstrac8ng the world into categories, measures and other representa8onal forms – numbers, characters, symbols, images, sounds, electromagne8c waves, bits – that cons8tute the building blocks from which informa8on and knowledge are created». E.g. when you take your temperature, thermometer is the sensor, tool that records a difference; temperature = 37.2 = data, just numbers. To understand what it means, you need some kind of context-> average temperature of human body-> piece of data becomes informa8on, something you didn’t know before, and which can create ac8on. Informa8on = data + context. Most informa8on we gain, we don’t retain because it’s irrelevant if we can’t connect it to meaningful ac8ons. Knowledge: informa8on that can actually inform your ac8ons. Dimensions of data: how can data vary?
connect to database, it becomes slower. Best possible scenario but you need to know the language and you need to get access. Queries = requests. c. Using APIs: Applica8on Programming Interfaces. Sort of membrane between database and user-> you speak with API, much less complicated than SQL-> API goes to database, fetches data you need and gives it to you. Lowest barrier of access. Very good for data that keeps changing. APIs protect the database from access and manage usage. APIs keep track of each access, so we can charge per call. 22.10.
way possible. E.g. Sherlock = when input a username, gets online and tells profiles of all main services that corresponds to that username. What are data licenses? Data is always released with license which specifies what can be done with it. Installing and using the data means accep8ng the license. Licenses regulate ownership, sharing and re-uses of data. We can model rela8onship between licensing and cost of data by fric2on = amount of trouble that you need to go through to access data.
dispersion: the more diverse the data formats are, the higher the costs of colla8ng data together will be. Another problem = data iner8a: the longer you do things in a certain way, the harder it will be to change the way you do things.
do we have unique keys in our dataset? § Inclusion : foreign key, key you have in a certain record points to another record->
make sure they are univocal
Data cultures iner2a = every company develops a way of doing things-> develop iner8a-> more costly to change. Whenever we design a data improvement strategy, we must take into considera8on that people tend to work the least possible for the largest amount of money. Key takeaways
Founda8on of all AI, ability of represen8ng things as vectors-> direc8on of vector will encode informa8on. Each variable is technically known as feature. Not all features are equally important-> how do we reflect that on calcula8on? By weighing them-> mul8plying them by a certain weight (index of how much something is important). Who decides weights - > either analyst or you devise someway to do it automa8cally. Where do these variables come from? Analyst decided them-> content-based recommenders live or die depending on quality of variables you choose to describe your en88es. For complex things like movies, what variables should we use to classify them and how can we extract those for thousands of movies? You can derive something from sub8tles, summary, reviews etc.-> text processing-> system that does it automa8cally and derives variables that build a catalog. Music This is much easier for music-> Spo8fy has a beher recommenda8on system than streaming services for example. Music already comes with a lot of metadata (ar8st, genre, year etc.), but it’s not enough. Variables become all possible metadata (“is Madonna singing?”) - > advantage is that it’s all encoded in 1/0 (yes/no). Problem: genre of a song is usually derived from genre of album in which song is included. Problem 2: genres are subjec8ve. Problem 3: genres are always labels that are applied a?erwards. à metadata isn’t enough. Music is simple-> technically speaking it’s a wave, bidimensional-> don’t need to have a preconceived no8on of a genre-> you can analyze features of wave and then calculate similari8es based on that. Two songs with completely different metadata and genres may end up prehy similar sound-wise. Movies Technically a video (= images, frames mul8plied by 24 per second) + audio + sub8tles + metadata (derived by IMDb). You can process sub8tles, calculate cooccurrences (words that people say a lot in the movie-> useful to understand topic) - > topic analysis technique. Video processing: analyze colors-> movies tend to have a palehe of colors + apply en8ty recogni8on to images = machine learning algorithms that recognize what’s in a picture. Metadata: same director, same director of photography, actors etc. Books Only principle = word frequency. !!! There are things that are hard to decompose in vectors, for example food. Collaborative filtering engines Agents make some choices, then I look for least average difference. This simplified version assumes that agents are all the same kind of individuals, and that all of them expressed ra8ngs about things they consume-> explicit kind of data. As human beings, we rate things when we love them or hate them, no in-between. If I don’t know what people liked but I know what you consumed, how can I calculate similari8es? You explicitly ask people to rate things, or you can iden8fy sociodemographic variables-> recommend things that people similar to you liked. Same principle as content-based recommenders, however this doesn’t describe variables but people.
Knowledge and Expertise : the extent and nature of data-related knowledge and expertise: information overload vs new kinds of digital literacies. 26.11. MACHINE LEARNING AND AI What is “smart”? Smart = not necessarily cultural depth (how much you know), it means to be able to respond and adapt to external inputs. Dumb = inability to respond to external inputs or you do it counterproductively. Smart thermostats from 1960s had wax inside-> when it was hotter, wax would melt blocking heating. Being smart has nothing to do with electronics-> machines able to perceive input and configure themselves according to it. Intelligence Complex and much broader notion. When speaking of artificial intelligence, we often mean smartness. Intelligence entails five dimensions:
something you use to predict how a system will be. Ability to do causal inference-> if x happens, then y happens. If we stop here, these 3 components don’t allow us to act in the world.
They mimic the way human neurons work-> connected to e/o-> fire a signal that ac8vates connected neurons. This is what lies behind idea of neural network: architecture built around this no8on-> machine that can produce any kind of output. Neuron fires signal with certain amount of strength-> signal can be more or less strong. E.g. input image of cat-> want to output above 90%-> reduce image to numbers (color value of every pixel) - > image is now a vector with as many direc8ons as number of pixels. We feed into input layer our dimensions-> arrange connec8ons with different weight-> adjust un8l ac8va8on junc8ons are set in a way that every 8me it comes out right irrespec8ve of how you input it. This can be done manually, but also done by back propaga8on: ini8alize it with totally random values-> if it doesn’t work, you go back and change in a way that gets you closer to the right answer un8l you actually get it right. We couldn’t do this in 1970s because it’s heavily computerized. When a neural network is wrong, you can’t just fix it, you must retrain it from scratch. This is why machine learning models based on neural networks have problem of intelligibility. This is why it’s called deep learning: no idea how or why hidden layers in between work. Big problems of opacity of AI. Key takeaways:
con8nuous vector representa8ons of words in a high-dimensional space. Purpose: capture seman8c meanings and rela8onships between words. Two main kinds of word embeddings:
Dimensionality reduc8on: most word embeddings today are done with just 512 dimensions; however, these lose completely any rela8onship with individual word-> becomes unreadable for human beings-> we can only infer meaning based on dimensions and words close to them. We reduce dimensionality but we preserve the meaning. E.g. same process as when you ask ChatGPT for synonyms. Transformers In 2017 different architectures called transformers were created-> they take en8rety of text as window-unit-
self-ahen8on mechanism: a way of understanding how important words are in sentences - > inverse frequency (the more common, the less important). This allows transformers to work without windows-> they have very long memory-> their job is to predict what word comes next depending on word that comes before. LLMs Language models, systems of embedding words, which have many words, high dimensional space and you train them (build embeddings), then you further train them but only linguis8cally-> telling it what to do and don’t. First you build machine and then teach machine what to do by programming it in natural language. Examples: GPT (Genera8ve Pre-trained Transformer), BERT (Bidirec8onal Encoder Representa8ons from Transformers), T5 (Text-to-Text Transfer Transformer). Geopoli8cs of data also applies to LLMs-> we don’t have enough new data to train these models much beher than they are right now. From now on there will be only small improvements. Also, the reason why countries are locking down social media. Key points:
would anybody have supply chain of wood on their computer? Also, companies have all incen8ves to falsify it. Another problem: blockchain is theore8cally global-> what jurisdic8on to apply? Also, it’s non-revokable-> blockchain is immutable. NFTs Non-Fungible Tokens-> if you’re a digital ar8st, your problem is that being digital your art can be copied infinitely, and the copy is the same as the original-> how to recognize original? Problem solved by NFTs, because digital artwork has unique iden8fier and when you sell it it’s public in the blockchain. Value storage: as long as people believe that something has a specific value you can sell it and get money-> most «metaverse» applica8ons are 3D environments with blockchain-based in-game markets based on NFTs.