The document discusses using TensorFlow in Go. While TensorFlow was initially developed for C++ and Python, Go is a relatively new language supported by TensorFlow. However, the API for Go is not yet fully-featured and the recommended approach is to train models in Python and consume them in Go. The document then explores an example of trying to port a Twitter sentiment analysis model trained in Python to Go. This proved challenging due to differences in how tensors are handled between languages and a lack of documentation on the model format. In summary, while Go can interact with TensorFlow, Python remains the preferred language for developing and training machine learning models.
Join us for three lightning talks around how to get the most out of the Slack Platform:
1) "JavaScript broke my heart, but TypeScript made me fall in love again" by Andrew @Halp
2) "How Slack uses Slack at Slack" by Dustin @SlackHQ
3) "Building devops tooling with Slack" by Dan @Transposit
Talk was held during the PHP Conference in Barcelona (27.09.2008), which was also attended by Derick Rethans, Scott MacVicar and other international speakers. It shows the advantages of using a php framework vs. spaghetti code for web application development in an agile manner.
A simple example based on the Akelos PHP Framework shows you how to implement a fulltext search in less than 20 minutes.
Join us for three lightning talks around how to get the most out of the Slack Platform:
1) "JavaScript broke my heart, but TypeScript made me fall in love again" by Andrew @Halp
2) "How Slack uses Slack at Slack" by Dustin @SlackHQ
3) "Building devops tooling with Slack" by Dan @Transposit
Talk was held during the PHP Conference in Barcelona (27.09.2008), which was also attended by Derick Rethans, Scott MacVicar and other international speakers. It shows the advantages of using a php framework vs. spaghetti code for web application development in an agile manner.
A simple example based on the Akelos PHP Framework shows you how to implement a fulltext search in less than 20 minutes.
Data Science Salon: Deep Learning as a Product @ ScribdFormulatedby
Â
Presented by Kevin Perko, Head of Data Science at Scribd
Next DSS NYC Event đ https://datascience.salon/newyork/
Next DSS LA Event đ https://datascience.salon/la/
Kevin will cover his experience using deep learning, going from scratch to deploying models in production to improve the product experience. He goes in-depth in terms of how we started deep learning from scratch, including navigating the maze of frameworks and hyper-parameters to optimize. Kevin will discuss pitfalls of using other people's algorithms and make a call for more rigor in publishing data science blog posts. Kevin closes with how his failure turned into an open source contribution and the work in moving from dev to production.
Prototype4Production Presented at FOSSASIA2015 at SingaporeDhruv Gohil
Â
Topic: Protoype for Production. Get ready to launch in a week with Django+Ansible and friends! Speaker: Dhruvkumar Gohil, IshiSystems Description: Sharing our whole Idea to Execution to Production work flow and tooling (all open source) centred around awesome Django. Ansible + AngujarJS + Postgresql Full Text Search + Supervisord + Nginx+Uwsgi.
What does OOP stand for?
When Object Oriented Programming(OOP) is taught so extensively, do computer programmers, specifically within games development, realise what it's possibly doing to productivity and performance? I explain my own view from experience in personal projects and professional work.
This talk was given to the Edinburgh meet of IGDA Scotland, on 2011/07/27.
Simplifying training deep and serving learning models with big data in python...Holden Karau
Â
More Serious Business Kitty Description:
While some deep learning systems have promised to not require any kind of data preparation or cleaning, in practice many folks find that effectively training their models requires some amount of data preparation and often we spend more time on our data preparation than anything else. This talk will examine tools for data preparation that can be used at scale on "big-data" and then how to use their results on-line at serving time (where we hopefully no longer require a cluster to predict every new user).
Less Serious Business Kitty Description:
Deep Learning, in addition to being a world class tool for detecting the presence of cats, requires large amounts of data for training. As much vendors may say "no data prep required", they are all lying*. This talk will look tools to build a deep learning pipeline with feature prep on top of existing big data technologies without rewriting your code for serving.
Traditionally feature prep done in a big data system, like Spark, Flink, or Beam, would have to be rewritting for the on-line serving component. This is about as much fun as when we have to rewrite our sample Python code into Java, as for some reason that's what a lot companies associate with "production." Come for the deep learning buzz-words, stay for the how to perform on-line serving without writing Java code.
*All vendors are optimists when it comes to their own products, including the vendors who pay Holden and Gris but they pay us so its ok.
A dispute on probably the most controversial feature in ES2016 leads us back to age old questions at the base of the most common practices of the development universe.
Do the âsacred lawsâ still apply?
jsDay 2016 closing keynote (http://2016.jsday.it/talk/a-class-action/)
TOP PYTHON INTERVIEW QUESTIONS AND ANSWERS 2021Sprintzeal
Â
Regardless of the source, you pick a rundown of best programming dialects to take in 2021 from, one name that will consistently discover its place there is Python. Thus, the appropriate response is true, on the off chance that you are finding out if a worthwhile vocation is conceivable by devoting yourself to the deciphered, elevated level, the broadly useful programming language, for example, learning Python Interview Questions.
Saltstack For DevOps
Extremely fast and simple IT automation and configuration managment
Through this book you will learn how to use one of the most powerful DevOps tools.
David has had a unique experience as a software practitioner. David met (and eventually married) a lady who was in the process of writing a dissertation on collaboration during pair programming. Reviewing (and reviewing and reviewing) this dissertation in combination with his industry experience has provided David with some unique insights into the act of pair programming. This talk aims to distill those insights and provide you with some concrete mechanisms that you can bring to your next pairing session to ensure that it is more effective.
On Selecting JavaScript Frameworks (Women Who Code 10/15)Zoe Landon
Â
For front-end developers, there's a never-ending stream of new things to learn. New frameworks, with new philosophies, seem to be released on a daily basis. How, then, do you pick which one to use? The answer, as it happens, has nothing to do at all with JavaScript.
Future proofing design work with Web componentsbtopro
Â
Web components are a W3C standard that's been adopted by all major browsers as of October 2018. The Version 1 specification is a joy to work with and brings the web into a composing context from a raw materials one. That is, we can now directly repurpose and leverage our efforts to build bigger and better experiences (like modern home development practices) instead of constantly reinventing the wheel (like molding bricks out of clay to work on our house).
As of this writing, the ELMS:LN team (4 people)Â at Penn State has created 433 web components for generalized use. We've built an editor, a CMS, integrated those elements into Drupal (multiple versions), delivered static sites, worked on desktop apps, and done design work entirely, end to end, using web components and a uniform process for creating and deploying them.
Talk structure:
What are web components, can I use them, answering questions of libraries, polyfills, SEO, and accessibility
Examples of who has adopted them and what they doing with them
Community resources like polymer slack, webcomponents, and open-wc.org
Detailed examples of adoption in production, Drupal and non-Drupal environments, lessons learned and unthinkable wins
Our WCFactory tooling that automates much of the workflow of producing a sustainable element portfolio
How teams can leverage web components across projects
Where Drupal 6,7,8,9 fit into the future with web components
Where the future is going with HAXeditor and HAXcms, the future of micro-site generation and management
Our team is in love with web components and we think you will too! Join us and build better, more sustainable design systems of the future (today)!
'10 Great but now Overlooked Tools' by Graham ThomasTEST Huddle
Â
The idea for this presentation came directly from EuroSTAR 2011. Sitting on the bus back to the conference centre after attending the Gala Dinner, a discussion started, about industry luminaries who turn up at conferences and give presentations which roughly say "Don't do all the stuff that I told you to do 5 years ago! Do this stuff now." But, but, but . . . .
As we got talking I realised how many simple effective tools I no longer used, because they have either become overlooked, forgotten and thus fallen into disuse, or because modern methods claim not to need them and they are redundant. I wondered if any of them were worth looking at again - starting with my trusty flowcharting template; I realised it is a great tool which I have overlooked for far too long!
Here is my list of 10 great but now overlooked tools:
⢠Flowcharts
⢠Prototypes
⢠Project Plans
⢠Mind Maps
⢠Tools we already have at our disposal like ....
⢠Aptitude Tests
⢠Hexadecimal Calculators
⢠Desk Checking
⢠Data Dictionaries and Workbenches
This is my list of really useful tools that I think are overlooked. In the webinar I will outline each tool, why I think it was great, and what we are missing out by not using it.
And it naturally follows that if there are some tools we have overlooked then there are also some tools that we should get rid of! I will identify some.
Hopefully this webinar will give you a different perspective on tools to use for testing, some tools that may be improved upon or plain discarded, and help you think about the tools you currently use and maybe to view them in a different light.
Let's dive deeper into the world of ODC! Ricardo Alves (OutSystems) will join us to tell all about the new Data Fabric. After that, Sezen de Bruijn (OutSystems) will get into the details on how to best design a sturdy architecture within ODC.
DevOps and Testing slides at DASA ConnectKari Kakkonen
Â
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Data Science Salon: Deep Learning as a Product @ ScribdFormulatedby
Â
Presented by Kevin Perko, Head of Data Science at Scribd
Next DSS NYC Event đ https://datascience.salon/newyork/
Next DSS LA Event đ https://datascience.salon/la/
Kevin will cover his experience using deep learning, going from scratch to deploying models in production to improve the product experience. He goes in-depth in terms of how we started deep learning from scratch, including navigating the maze of frameworks and hyper-parameters to optimize. Kevin will discuss pitfalls of using other people's algorithms and make a call for more rigor in publishing data science blog posts. Kevin closes with how his failure turned into an open source contribution and the work in moving from dev to production.
Prototype4Production Presented at FOSSASIA2015 at SingaporeDhruv Gohil
Â
Topic: Protoype for Production. Get ready to launch in a week with Django+Ansible and friends! Speaker: Dhruvkumar Gohil, IshiSystems Description: Sharing our whole Idea to Execution to Production work flow and tooling (all open source) centred around awesome Django. Ansible + AngujarJS + Postgresql Full Text Search + Supervisord + Nginx+Uwsgi.
What does OOP stand for?
When Object Oriented Programming(OOP) is taught so extensively, do computer programmers, specifically within games development, realise what it's possibly doing to productivity and performance? I explain my own view from experience in personal projects and professional work.
This talk was given to the Edinburgh meet of IGDA Scotland, on 2011/07/27.
Simplifying training deep and serving learning models with big data in python...Holden Karau
Â
More Serious Business Kitty Description:
While some deep learning systems have promised to not require any kind of data preparation or cleaning, in practice many folks find that effectively training their models requires some amount of data preparation and often we spend more time on our data preparation than anything else. This talk will examine tools for data preparation that can be used at scale on "big-data" and then how to use their results on-line at serving time (where we hopefully no longer require a cluster to predict every new user).
Less Serious Business Kitty Description:
Deep Learning, in addition to being a world class tool for detecting the presence of cats, requires large amounts of data for training. As much vendors may say "no data prep required", they are all lying*. This talk will look tools to build a deep learning pipeline with feature prep on top of existing big data technologies without rewriting your code for serving.
Traditionally feature prep done in a big data system, like Spark, Flink, or Beam, would have to be rewritting for the on-line serving component. This is about as much fun as when we have to rewrite our sample Python code into Java, as for some reason that's what a lot companies associate with "production." Come for the deep learning buzz-words, stay for the how to perform on-line serving without writing Java code.
*All vendors are optimists when it comes to their own products, including the vendors who pay Holden and Gris but they pay us so its ok.
A dispute on probably the most controversial feature in ES2016 leads us back to age old questions at the base of the most common practices of the development universe.
Do the âsacred lawsâ still apply?
jsDay 2016 closing keynote (http://2016.jsday.it/talk/a-class-action/)
TOP PYTHON INTERVIEW QUESTIONS AND ANSWERS 2021Sprintzeal
Â
Regardless of the source, you pick a rundown of best programming dialects to take in 2021 from, one name that will consistently discover its place there is Python. Thus, the appropriate response is true, on the off chance that you are finding out if a worthwhile vocation is conceivable by devoting yourself to the deciphered, elevated level, the broadly useful programming language, for example, learning Python Interview Questions.
Saltstack For DevOps
Extremely fast and simple IT automation and configuration managment
Through this book you will learn how to use one of the most powerful DevOps tools.
David has had a unique experience as a software practitioner. David met (and eventually married) a lady who was in the process of writing a dissertation on collaboration during pair programming. Reviewing (and reviewing and reviewing) this dissertation in combination with his industry experience has provided David with some unique insights into the act of pair programming. This talk aims to distill those insights and provide you with some concrete mechanisms that you can bring to your next pairing session to ensure that it is more effective.
On Selecting JavaScript Frameworks (Women Who Code 10/15)Zoe Landon
Â
For front-end developers, there's a never-ending stream of new things to learn. New frameworks, with new philosophies, seem to be released on a daily basis. How, then, do you pick which one to use? The answer, as it happens, has nothing to do at all with JavaScript.
Future proofing design work with Web componentsbtopro
Â
Web components are a W3C standard that's been adopted by all major browsers as of October 2018. The Version 1 specification is a joy to work with and brings the web into a composing context from a raw materials one. That is, we can now directly repurpose and leverage our efforts to build bigger and better experiences (like modern home development practices) instead of constantly reinventing the wheel (like molding bricks out of clay to work on our house).
As of this writing, the ELMS:LN team (4 people)Â at Penn State has created 433 web components for generalized use. We've built an editor, a CMS, integrated those elements into Drupal (multiple versions), delivered static sites, worked on desktop apps, and done design work entirely, end to end, using web components and a uniform process for creating and deploying them.
Talk structure:
What are web components, can I use them, answering questions of libraries, polyfills, SEO, and accessibility
Examples of who has adopted them and what they doing with them
Community resources like polymer slack, webcomponents, and open-wc.org
Detailed examples of adoption in production, Drupal and non-Drupal environments, lessons learned and unthinkable wins
Our WCFactory tooling that automates much of the workflow of producing a sustainable element portfolio
How teams can leverage web components across projects
Where Drupal 6,7,8,9 fit into the future with web components
Where the future is going with HAXeditor and HAXcms, the future of micro-site generation and management
Our team is in love with web components and we think you will too! Join us and build better, more sustainable design systems of the future (today)!
'10 Great but now Overlooked Tools' by Graham ThomasTEST Huddle
Â
The idea for this presentation came directly from EuroSTAR 2011. Sitting on the bus back to the conference centre after attending the Gala Dinner, a discussion started, about industry luminaries who turn up at conferences and give presentations which roughly say "Don't do all the stuff that I told you to do 5 years ago! Do this stuff now." But, but, but . . . .
As we got talking I realised how many simple effective tools I no longer used, because they have either become overlooked, forgotten and thus fallen into disuse, or because modern methods claim not to need them and they are redundant. I wondered if any of them were worth looking at again - starting with my trusty flowcharting template; I realised it is a great tool which I have overlooked for far too long!
Here is my list of 10 great but now overlooked tools:
⢠Flowcharts
⢠Prototypes
⢠Project Plans
⢠Mind Maps
⢠Tools we already have at our disposal like ....
⢠Aptitude Tests
⢠Hexadecimal Calculators
⢠Desk Checking
⢠Data Dictionaries and Workbenches
This is my list of really useful tools that I think are overlooked. In the webinar I will outline each tool, why I think it was great, and what we are missing out by not using it.
And it naturally follows that if there are some tools we have overlooked then there are also some tools that we should get rid of! I will identify some.
Hopefully this webinar will give you a different perspective on tools to use for testing, some tools that may be improved upon or plain discarded, and help you think about the tools you currently use and maybe to view them in a different light.
Let's dive deeper into the world of ODC! Ricardo Alves (OutSystems) will join us to tell all about the new Data Fabric. After that, Sezen de Bruijn (OutSystems) will get into the details on how to best design a sturdy architecture within ODC.
DevOps and Testing slides at DASA ConnectKari Kakkonen
Â
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
Â
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Search and Society: Reimagining Information Access for Radical FuturesBhaskar Mitra
Â
The field of Information retrieval (IR) is currently undergoing a transformative shift, at least partly due to the emerging applications of generative AI to information access. In this talk, we will deliberate on the sociotechnical implications of generative AI for information access. We will argue that there is both a critical necessity and an exciting opportunity for the IR community to re-center our research agendas on societal needs while dismantling the artificial separation between the work on fairness, accountability, transparency, and ethics in IR and the rest of IR research. Instead of adopting a reactionary strategy of trying to mitigate potential social harms from emerging technologies, the community should aim to proactively set the research agenda for the kinds of systems we should build inspired by diverse explicitly stated sociotechnical imaginaries. The sociotechnical imaginaries that underpin the design and development of information access technologies needs to be explicitly articulated, and we need to develop theories of change in context of these diverse perspectives. Our guiding future imaginaries must be informed by other academic fields, such as democratic theory and critical theory, and should be co-developed with social science scholars, legal scholars, civil rights and social justice activists, and artists, among others.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Â
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Dev Dives: Train smarter, not harder â active learning and UiPath LLMs for do...UiPathCommunity
Â
đĽ Speed, accuracy, and scaling â discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Miningâ˘:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing â with little to no training required
Get an exclusive demo of the new family of UiPath LLMs â GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
đ¨âđŤ Andras Palfi, Senior Product Manager, UiPath
đŠâđŤ Lenka Dulovicova, Product Program Manager, UiPath
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
Â
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
Â
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Â
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as âpredictable inferenceâ.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
Â
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. Whatâs changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
2. ME
Background
Test, Test Automation,
Support, Development,
Release Engineering,
Management and now
back to development
with teamwork.com
No Data Science?
Nope. Just someone
who is interested in all
the amazing things
happening in this space
Tensorflow experience
About 7 days⌠yeah honestly youâll soon see
4. Definition
Input Layer - Source of data. No transforms just pass it on
Bias Nodes - Always on. Always set to 1. Think of it as b in y = ax + b. Shifts a
function by allowing flexibility.
Hidden Layer - > 1 layer here makes it a deep network. This is where
calculations are applied and result past to next layer. Hidden because values
not in training set. S
Output Layer - Result from the model. During training this is compared to
expected and used to change weights to improve model
https://ujjwalkarn.me/2016/08/09/quick-intro-neural-networks/
5. Some good intro resources
https://stevenmiller888.github.io/mind-how-to-build-a-neural-network/
https://www.quora.com/ELI5-What-are-neural-networks is a nice example and talks about how you would get a computer to learn
a âsquareâ function
https://stats.stackexchange.com/questions/63152/what-does-the-hidden-layer-in-a-neural-network-compute
Talks about hidden layers and classifying pictures of a bus. You might look for wheels. For a box. Checking the size etc and if all
3 hit youâre confident this is a busâŚ
http://ufldl.stanford.edu/tutorial/supervised/MultiLayerNeuralNetworks/
https://stackoverflow.com/questions/38248657/why-does-simple-2-layer-neural-network-cannot-learn-0-0-sequence#38253140
https://stackoverflow.com/questions/1697243/perceptron-learning-algorithm-not-converging-to-0
6. OK but whatâs tensorflow
Collection of APIâs to allow you to create, train and
consume the models we are talking about.
Machine learning toolkit in other words
https://www.tensorflow.org/get_started/ - official docs
Colab notebooks are COOL but a bit slow
7. Other good introductions
https://eu.udacity.com/course/deep-learning--ud730 - Free course from Google
https://developers.google.com/machine-learning/crash-course/ml-intro -
amazing google course
https://developers.google.com/machine-learning/glossary/ -Glossary
https://medium.com/all-of-us-are-belong-to-machines/the-gentlest-introduction-
to-tensorflow-248dc871a224
https://dzone.com/refcardz/introduction-to-tensorflow?chapter=1 - focused on
worked examples in python
https://www.youtube.com/watch?v=MotG3XI2qSs
https://www.youtube.com/watch?v=5DknTFbcGVM
11. Hello Gopher Version
Letâs review the hello world version
https://gist.github.com/PatrickWalker/78e7cbaf3bcb791150
5990409a33dfa6
^ added some comments
We can create a graph, setup a session to execute the
graph and scoop out the results. Nice.
Itâs exactly the same as the python version...
12. Whatâs different?
Tensortflow was initially for C++ and Python. Go is a relative newcomer with it and itâs not
fully featured yet
It is not officially designated to support creation and training of models. Yep thatâs right. You
shouldnât train a model with goâŚ
Ok so itâs not ideal but donât leave yet.
You can in theory train your model in Go, but the API isnât stable, but the suggested
âidiomaticâ way is to train it in python and consume it in go so not all is lost
13. The idiotmatic way
THE PATRICK WAY
Let some other brainboxes do that bit. Itâs the hardest bit.
Weâll just profit on other peoples work.
We will re-use work from other people. GENIUS. If only
there was a common shared place that gave you
confidence...
14. Tensorflow Hub
https://www.tensorflow.org/hub/
Recently launched.
TensorFlow Hub is a library to foster the publication, discovery, and
consumption of reusable parts of machine learning models. A module is a
self-contained piece of a TensorFlow graph, along with its weights and assets,
that can be reused across different tasks in a process known as transfer
learning.
15. Other new stuff?
â Tensorflow lite (mobile)
â Tensorflow JS
â Probability API
â Community Focus
More here
https://medium.com/tensorflow/highlights-from-tensorflow-
developer-summit-2018-cd86615714b2
https://www.youtube.com/tensorflow
17. Why?
Interested in doing a competitor analysis for a project we are about to
undertake for work.
What I would love to do is get a stream of tweets using a search term. Push
them through a SPECIAL MACHINE (our tensorflow model in this case) and
know if they are positive or negative statements.
Then try and work out common words/themes that show up in both category to
know what is loved and what isnât loved
18. Isnât this overkill
Well there is an api essentially to do it but that probably wouldnât have been
too interesting for a tensorflow meetup :D
There are ready made github libraries but I struggled to
get actual results from them. Everything was deemed
neutral or positive even if I searched for overwhelmingly
negative things like âInternet Explorerâ or âJames
Cordenâ or âmiddle aged men crowbarring gifs into tech
presentationsâ
So I started to think about making my
own naive bayes classification system...
19. How?
Went to lift a fully featured trained twitter sentiment model from the hubâŚ
Doesnât exist because these are building blocks. Itâs more of a library. So there
are text helpers and one even looks at semantic similarity between sentences
but would take a fair amount of building and actual brain power to make the full
thing. Thatâs not me.
So off to github and scouring blogs I went.
20. How?
Followed this blog and made an amazing model which would allow us to check
sentiment of strings. AMAZING. Thought porting to go would be easy.
<voiceover> it was not easy </voiceover>
Training the model in Python was pretty straightforward but time consuming
and resource hungry.
Had to change the exported model format after the 2nd go as it had seperated
weights and model which made parsing them again hard.
This left with me with a trained model (github) and now it was time to interact
with it in Go
21. Go Code
Followed this blog and made an amazing model which would allow us to check
sentiment of strings. AMAZING. Thought porting to go would be easy.
<voiceover> it was not easy </voiceover>
Training the model in Python was pretty straightforward but time consuming
and resource hungry.
Had to change the exported model format after the 2nd go as it had separated
weights and model which made parsing them again hard.
This left with me with a trained model and now it was time to interact with it in
Go...
22. Go Code
Thatâs when you realise that unless you define some sort of contract on the
model it can be quite hard to parse and understand the format of the input
tensor etc to get the model going again in another context (go in this case).
Imagine trying to talk to an undocumented api in a language that had no json
helper...
Also donât have* wonderous helpers like numpy and others to help make the
tensors so itâs a bit hokey in Go atm.
I mean I forked python code which allowed me to do this out of the box so Iâm
unsure why you would want to redo half of it in another language.
23. Summary
â Really interesting area
â If youâre familiar with Go or organizationally invested in
Go you can still get involved in Tensorflow
â It probably isnât the right thing to do imo. Python is.
â Javascript seems like the priority now for other
languages so not sure when Go will get the love
As of today Go isnât really the language of ML
https://godoc.org/github.com/tensorflow/tensorflow/tensorflow/go#example-PartialRunThis approach is actually used in the go doc and referenced in tensorflow getting started
Thereâs been some attempts but youâll find most of the tutorials on this roll their own tensors