Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds

Tech News

3711 Articles
article-image-in-5-years-machines-will-do-half-of-our-job-tasks-of-today-1-in-2-employees-need-reskilling-upskilling-now-world-economic-forum-survey
Bhagyashree R
20 Sep 2018
5 min read
Save for later

In 5 years, machines will do half of our job tasks of today; 1 in 2 employees need reskilling/upskilling now - World Economic Forum survey

Bhagyashree R
20 Sep 2018
5 min read
Earlier this week, World Economic Forum published a report, The Future of Jobs Report 2018, which is based on a survey they conducted to analyze the trends in the job sector in the period 2018-2022. This survey considered 20 economies and 12 industry sectors. The main focus of this survey was to better understand the potential of new technologies, including automation and algorithms, to create new high-quality jobs and improve the existing job quality and productivity of human employees. Key findings from The Future of Jobs survey #1 Technological advances will drive business growth By 2022, we will see four key technologies enabling business growth: high-speed mobile internet, artificial intelligence, widespread adoption of big data analytics, and cloud technology. 85% of the companies are expected to invest in big data analytics. A large share of companies are also interested in adopting internet of things, app- and web-enabled markets, and cloud computing. Machine learning and augmented and virtual reality will also see considerable business investment. Source: World Economic Forum #2 Acceptance of robots varies across sectors The demand for humanoid robots will be limited in this period, as businesses are more gravitating towards robotics technologies that are at or near commercialization. These technologies include stationary robots, non-humanoid land robots and fully automated aerial drones, in addition to machine learning algorithms and artificial intelligence. Majority of companies (37% to 29%) are showing interest in adopting stationary robots. Oil & Gas industry report the same level of demand for stationary, aerial, and underwater robots. Financial Services industry is planning the adoption of humanoid robots in the period up to 2022. #3 Towards equal work distribution between machines and humans Almost 50% of the companies are expecting that by 2022 automation will lead to some reduction in workforce. While 38% of the companies are more likely to shift their workforce to new productivity-enhancing roles. And more than quarter believe that automation will lead to the creation of new roles in their enterprise. The period from 2018-2022 will see a significant shift in the division of work between humans, machines, and algorithms. Currently, across all the 12 industries surveyed, 71% of the task hours are performed by humans, compared to 29% by machines. By 2022, this average will this average is expected to have shifted to 58% task hours performed by humans and 42% by machines. Source: World Economic Forum Read also: 15 millions jobs in Britain at stake with Artificial Intelligence robots set to replace humans at workforce #4 Emergence of new job opportunities By 2020, with technological advancements newly emerging job roles and opportunities are expected to grow from 16% to 27% of the employee base. The job roles that are affected by technological obsolescence are set to decrease from 31% to 21%. The survey also revealed that there will be a decline of 0.98 million jobs and a gain of 1.74 million jobs. The professions that will enjoy increasing demand include Data Analysts and Scientists, Software and Applications Developers, and Ecommerce and Social Media Specialists. As you can already tell, these are the roles that are significantly based on and enhanced by the use of technology. Read also: Highest Paying Data Science Jobs in 2017 Roles that leverage ‘human' skills are also expected to grow, such as Customer Service Workers, Sales and Marketing Professionals, Training and Development, People and Culture, and Organizational Development Specialists as well as Innovation Managers. Source: World Economic Forum #5 Upskilling and reskilling is the need of the hour With so many businesses embracing technological advancements for business growth, around 54% of the employees will require significant reskilling and upskilling. Out of these 35% are expected to require additional training of up to six months, 9% will require reskilling lasting six to 12 months, while 10% will require additional skills training of more than a year. The key skills that are expected to grow by 2022 include analytical thinking and innovation as well as active learning and learning strategies. Along with these skills, there is an increase in demand for technology design and programming. This indicates a growing demand for various forms of technology competency identified by employers surveyed for this report. Read also: A non programmer’s guide to learning Machine learning Employers are also looking for “human” skills in their employees which include creativity, originality and initiative, critical thinking, persuasion and negotiation. Social influence and emotional intelligence leadership will also see an outsized increase in demand. Read also: 96% of developers believe developing soft skills is important Source: World Economic Forum #6 How companies are planning to address skills gaps To address the skill gaps widened by the adoption of new technologies, companies have highlighted three future strategies. They expect to hire wholly new permanent staff already possessing skills relevant to new technologies, seek to automate the work tasks concerned completely, and retrain existing employees. Read also: Stack skills, not degrees: Industry-leading companies, Google, IBM, Apple no longer require degrees Most companies are considering the option of hiring new permanent staff with relevant skills. A quarter of them are undecided to pursue the retraining of existing employees and two-thirds expect their employees to acquire these skills during their transition period. Between one-half and two-thirds are likely to turn to external contractors, temporary staff and freelancers to address their skills gaps. Source: World Economic Forum Read also: Why learn machine learning as a non-techie? The advancements in technology will come with its own pros and cons. Automation and work augmentation in business will result in decreasing the demand of some of the current job roles. At the same time, this will also open up more opportunities for an entirely new range of livelihood options for workers. To be prepared for this shift, with the help of our employers, we need to upskill ourselves with an agile mindset. To know more in detail, check out the report published by World Economic Forum: The Future of Jobs 2018. Survey reveals how artificial intelligence is impacting developers across the tech landscape Why TensorFlow always tops machine learning and artificial intelligence tool surveys What the IEEE 2018 programming languages survey reveals to us
Read more
  • 0
  • 0
  • 15124

article-image-llvm-7-0-0-released-with-improved-optimization-and-new-tools-for-monitoring
Prasad Ramesh
20 Sep 2018
3 min read
Save for later

LLVM 7.0.0 released with improved optimization and new tools for monitoring

Prasad Ramesh
20 Sep 2018
3 min read
LLVM is a collection of tools used to develop compiler front ends and back ends. LLVM 7.0.0 has now been released with new tools and features such as performance measurement, optimization and others. The Windows installer in LLVM 7.0.0 no longer includes a Visual Studio integration. Now, there is a new LLVM Compiler Toolchain Visual Studio extension on the Visual Studio Marketplace. This new integration method supports Visual Studio 2017. The libraries are renamed from 7.0 to 7. Note that this change also impacts downstream libraries like lldb. The LoopInstSimplify pass (-loop-instsimplify) is removed in this release. When using Windows x or w IR mangling schemes, symbols starting with ? are no longer mangled by LLVM. A new tool called llvm-exegesis has been added. This new tool automatically measures instruction scheduling properties and provides a principled way to edit scheduling models. Another new tool llvm-mca is a static performance analysis tool that uses information to statically predict the performance of machine code for a specific CPU. The optimization of floating-point casts is also improved. It provides optimized results for code that relies on the undefined behavior of overflowing casts. The optimization feature is on by default and can be disabled by specifying a function attribute: "strict-float-cast-overflow"="false" This attribute can be created by the clang option -fno-strict-float-cast-overflow. To detect affected patterns code sanitizers can be used. The clang option for detecting only this problem alone is -fsanitize=float-cast-overflow. A demonstration is as follows: int main() {  float x = 4294967296.0f;  x = (float)((int)x);  printf("junk in the ftrunc: %f\n", x);  return 0; } And the clang options is run: clang -O1 ftrunc.c -fsanitize=float-cast-overflow ; ./a.out ftrunc.c:5:15: runtime error: 4.29497e+09 is outside the range of representable values of type 'int' junk in the ftrunc: 0.000000 LLVM_ON_WIN32 is no longer set by files in llvm/Config/config.h and llvm/Config/llvm-config.h. If you have used this macro before, now use the compiler-set _WIN32 instead, which is set exactly when LLVM_ON_WIN32 used to be set. The DEBUG macro has been renamed to LLVM_DEBUG, but the interface remains the same. SmallVector<T, 0> is shrunk from sizeof(void*) * 4 + sizeof(T) to sizeof(void*) + sizeof(unsigned) * 2. It is smaller than std::vector<T> on 64-bit platforms. The maximum capacity for it is now restricted to UINT32_MAX. Experimental support is added for DWARF v5 debugging. This includes the new .debug_names accelerator table. The opt tool supports the -load-pass-plugin option to load pass plugins for the new PassManager. Support is added for profiling JIT-ed code with perf. In LLVM 7.0.0 support for the .rva assembler directive for COFF targets is added. For Windows, the llvm-rc tool has also received minor upgrades. There are still some known missing features but it should be usable in most cases. On request, CodeView debug info can now be emitted for MinGW configurations. There are also changes to variety of targets like AArch64 Target, ARM, x86 among others. For a complete list of updates, visit the LLVM website. JUnit 5.3 brings console output capture, assertThrow enhancements and parallel test execution Mastodon 2.5 released with UI, administration, and deployment changes ReSharper 18.2 brings performance improvements, C# 7.3, Blazor support and spellcheck
Read more
  • 0
  • 0
  • 14880

article-image-sap-creates-ai-ethics-guidelines-and-forms-an-advisory-panel
Prasad Ramesh
20 Sep 2018
3 min read
Save for later

SAP creates AI ethics guidelines and forms an advisory panel

Prasad Ramesh
20 Sep 2018
3 min read
“The danger of AI is much greater than the danger of nuclear warheads, by a lot”—Elon Musk SAP, a market leader enterprise software, became the first European technology company to create an AI ethics advisory panel when they made an announcement on Tuesday. They have has announced a set of guiding principles and have developed an external artificial intelligence (AI) ethics advisory panel of five board members. What are the guidelines? The guidelines revolve around recognizing AI’s significant impact on people and society. SAP says that they have designed these guidelines to “help the world run better and improve people’s lives”. The seven guidelines as stated on the SAP website are: We are driven by our values. We design for people. We enable business beyond bias. We strive for transparency and integrity in all that we do. We uphold quality and safety standards. We place data protection and privacy at our core. We engage with the wider societal challenges of artificial intelligence Who is in the AI ethics advisory board? The advisory board panel comprises of experts from various fields like academia, politics and industry. The panel is present for ensuring the adoption of the principles and to develop the principles further collaboratively with the ‘SAP AI steering committee’. The AI ethics panel consists of members who are theology professors, chairmen, law and policy professors, IT professors, and scholars, researchers. The members are: Dr. theol. Peter Dabrock, Chair of Systematic Theology (Ethics), University of Erlangen-Nuernberg Dr. Henning Kagermann, Chairman, acatechBoard of Trustees; acatech Senator Susan Liautaud, Lecturer in Public Policy and Law, Stanford. Founder and Managing Director, Susan Liautaud & Associates Limited (SLAL) Dr. Helen Nissenbaum, Professor, Cornell Tech Information Science Nicholas Wright, Consultant, Intelligent Biology. Affiliated Scholar with Pellegrino Center for Clinical Bioethics Georgetown University Medical Center. An Honorary Research Associate in Institute of Cognitive Neuroscience, University College London Together with the guidelines, SAP’s internal committee and the formed external panel, SAP aims to ensure that the AI capabilities in SAP Leonardo Machine Learning are used to maintain ‘integrity and trust’ in all its solutions. Implementation of AI ethics SAP thinks that the guiding principles also contribute to the AI debate in Europe. Markus Noga, senior vice president, Machine Learning, SAP, is appointed to the high level AI expert group by the European Commission. This European AI expert group was created to design an AI strategy and purpose with ethical guidelines relating to fairness, safety, transparency, by early 2019. Luka Mucic, Chief Financial Officer and member of the Executive Board of SAP Se. stated “SAP considers the ethical use of data a core value. We want to create software that enables the intelligent enterprise and actually improves people’s lives. Such principles will serve as the basis to make AI a technology that augments human talent.” For more information visit the SAP website and read their guiding principles for artificial intelligence. SapFix and Sapienz: Facebook’s hybrid AI tools to automatically find and fix software bugs Sex robots, artificial intelligence, and ethics: How desire shapes and is shaped by algorithms What makes functional programming a viable choice for artificial intelligence projects?
Read more
  • 0
  • 0
  • 16924

article-image-matplotlib-3-0-is-here-with-new-cyclic-colormaps-and-convenience-methods
Natasha Mathur
20 Sep 2018
3 min read
Save for later

Matplotlib 3.0 is here with new cyclic colormaps, and convenience methods

Natasha Mathur
20 Sep 2018
3 min read
Matplotlib team announced Matplotlib version 3.0, on Tuesday. Matplotlib 3.0 comes with new features such as two new cyclic colormaps, AnchoredDirectionArrows feature, and other updates and improvements. Matplotlib is a plotting library for the Python programming language as well as for its numerical mathematics extension, NumPy. It offers an object-oriented API for embedding plots into applications using general-purpose GUI toolkits such as Tkinter, wxPython, Qt, or GTK+. Let’s have a look at what’s new in this latest release. Cyclic Colormaps Two new colormaps namely 'twilight' and 'twilight_shifted' have been added to this new release. These two colormaps start and end on the same color. They have two symmetric halves with equal lightness, but diverging color. AnchoredDirectionArrows added to mpl_toolkits A new mpl_toolkit class AnchoredDirectionArrows, has been added in this release. AnchoredDirectionArrows draws a pair of orthogonal arrows which helps indicate directions on a 2D plot. Several optional parameters can alter the layout of these arrows. For instance, the arrow pairs can be rotated and their color can be changed. The labels and the arrows have the same color by default, but the class may also pass arguments for customizing arrow and text layout. Other than that, the location, length, and width of both the arrows can also be adjusted. Improved default backend selection The default backend needs no longer be set as part of the build process. Instead, builtin backends are tried in sequence at run time, until one of the imports. Also, Headless Linux servers cannot select a GUI backend. Scale axis by a fixed order of magnitude With Matplotlib 3.0, you can scale an axis by a fixed order of magnitude by setting the scilimits argument of Axes.ticklabel_format to the same (non-zero) lower and upper limits. With this setting, the order of magnitude gets adjusted depending on the axis values, rather than remaining fixed. minorticks_on()/off() methods added for colorbar A new method colorbar.Colobar.minorticks_on() has been added in this new release that can correctly display the minor ticks on a colorbar. This method doesn't allow the minor ticks to extend into the regions beyond vmin and vmax. A complementary method named colorbar.Colobar.minorticks_off() has also been added for removing the minor ticks on the colorbar. New convenience methods for GridSpec New convenience methods namely gridspec.GridSpec and gridspec.GridSpecFromSubplotSpec have been added in Matplotlib 3.0. Other Changes Colorbar ticks are now automatic. Legend has a title_fontsize kwarg (and rcParam) now. Multipage PDF support has been added for pgf backend. Pie charts are now circular by default in Matplotlib 3.0 :math: directive has been renamed to :mathmpl: For more information, be sure to check out the official Matplotlib release notes. Creating 2D and 3D plots using Matplotlib How to Customize lines and markers in Matplotlib 2.0 Tinkering with ticks in Matplotlib 2.0
Read more
  • 0
  • 0
  • 14650

article-image-nsas-eternalblue-leak-leads-to-459-rise-in-illicit-crypto-mining-cyber-threat-alliance-report
Melisha Dsouza
20 Sep 2018
3 min read
Save for later

NSA’s EternalBlue leak leads to 459% rise in illicit crypto mining, Cyber Threat Alliance report

Melisha Dsouza
20 Sep 2018
3 min read
"Illicit mining is the 'canary in the coal mine' of cybersecurity threats. If illicit cryptocurrency mining is taking place on your network, then you most likely have worse problems and we should consider the future of illicit mining as a strategic threat." - Neil Jenkins, Chief Analytic Officer for the Cyber Threat Alliance A leaked software tool from the US National Security Agency has led to a surge in Illicit cryptocurrency mining, researchers said on Wednesday. The report released by the Cyber Threat Alliance, an association of cybersecurity firms and experts, states that it detected a 459 percent increase in the past year of illicit crypto mining- a technique used by hackers to steal the processing power of computers to create cryptocurrency. One reason for the sharp rise in illicit mining was the leak last year by a group of hackers known as the Shadow Brokers of EternalBlue. The EternalBlue was a software developed by the NSA to exploit vulnerabilities in the Windows operating system. There are still countless organizations that are being victimized by this exploit, even after a patch for EternalBlue has been made available for 18 months. Incidentally, the rise in hacking coincides with the growing use of virtual currencies such as bitcoin, ethereum or monero. Hackers have discovered ways to tap into the processing power of unsuspecting computer users to illicitly generate currency. Neil Jenkins said in a blog post that the rise in malware for crypto mining highlights "broader cybersecurity threats". Crypto mining which was once non-existent is, now, virtually on every top firm’s threat list. The report further added that 85 percent of illicit cryptocurrency malware mines monero, and 8 percent mines bitcoin. Even though Bitcoin is well known as compared to Monero, according to the report, the latter offers more privacy and anonymity which help cyber criminals hide their mining activities and their transactions using the currency. Transaction addresses and values are unclear in monero by default, making it incredibly difficult for investigators to find the cybercrime footprint. The blog advises network defenders to make it harder for cybercriminals to carry out illicit mining by improving practices of cyber hygiene. Detection of cyber mining and Incident response plans to the same should also be improved. Head over to techxplore for more insights on this news. NSA researchers present security improvements for Zephyr and Fucshia at Linux Security Summit 2018 Top 15 Cryptocurrency Trading Bots Cryptojacking is a growing cybersecurity threat, report warns  
Read more
  • 0
  • 0
  • 2669

article-image-google-to-allegedly-launch-a-new-smart-home-device
Guest Contributor
20 Sep 2018
2 min read
Save for later

Google to allegedly launch a new Smart home device

Guest Contributor
20 Sep 2018
2 min read
In the midst of all the leaks related to Pixel 3 and Pixel 3 XL regarding whether Google will embrace iPhone like notch or will have wireless charging, reports have surfaced that Google has even more news to showcase in its big hardware event “Made By Google” on October 9. According to a report from MySmartPrice, Google might launch a new device called "Google Home Hub" Smart Speaker sporting a 7-inch display with large squarish speakers in two variants Chalk white and Charcoal. Image source mysmartprice Google has been pretty successful with its smart home devices like Google Home series but after Amazon teased its smart home device with screen called 'Amazon Echo Show' Tech giant was keen to work on a product to compete with its rival. If the leaked news from "MySmartPrice" is to be believed, with Google Home Hub powered by Google assistant we can watch YouTube, HBO, and videos from other content providers. Additionally, the device will also display time, weather, daily commute information and other regular Google assistant features.  However, it will not have full-fledged Android OS. While the device comes power packed with the Google software but based on leaks, what seems to be missing from the device is the camera. It would have been perfect if the device sported a camera as well which could have been used for video calling as Google is aggressively marketing its video calling app Google Duo. The device will, however, feature  WiFi and Bluetooth. Image source: mysmartprice With the new device, Google might also introduce new features for the Google assistant. Though there is no confirmation from Google regarding the product yet but the timing makes perfect sense as Google's upcoming event on October 9th would be the perfect place to announce a Google Home Hub along with its much awaited Pixel smartphone series. Read full article on Mysmartprice. Author Bio Full time Linux Admin part time reader, always up for latest technology and a cup of tea, interested in Cloud services, Machine learning and Artificial Intelligence. Amazon Echo vs Google Home: Next-gen IoT war. Home Assistant: an open source Python home automation hub to rule all things smart. Cortana and Alexa become best friends: Microsoft and Amazon release a preview of this integration.
Read more
  • 0
  • 0
  • 16181
Unlock access to the largest independent learning library in Tech for FREE!
Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
Renews at $19.99/month. Cancel anytime
article-image-linkerd-2-0-is-now-generally-available-with-a-new-service-sidecar-design
Sugandha Lahoti
20 Sep 2018
2 min read
Save for later

Linkerd 2.0 is now generally available with a new service sidecar design

Sugandha Lahoti
20 Sep 2018
2 min read
Linkerd 2.0 is now generally available. Linkerd is a transparent proxy that adds service discovery, routing, failure handling, and visibility to modern software applications. Linkerd 2.0 brings two significant changes. First, Linkerd 2.0 is completely rewritten to to be faster and smaller than Linkerd 1.x. Second, Linkerd moves beyond the service mesh model to running on a single service. It also comes with a focus on minimal configuration, a modular control plane design, and UNIX-style CLI tools. Let’s understand what each of these changes mean. Smaller and Faster Linkerd has undergone a complete change to become faster and smaller than its predecessor. Linkerd 2.0’s data plane is comprised of ultralight Rust proxies which consume around 10mb of RSS and have a p99 latency of <1ms. Linkerd’s minimalist control plane (written in Go) is similarly designed for speed and low resource footprint. Service sidecar design It also adopts a modern service sidecar design from the traditional service mesh model. The traditional service mesh model has two major problems. First, they add a significant layer of complexity to the tech stack. Second they are designed to meet the needs of platform owners undermining the service owners. Linkerd 2.0’s service sidecar design offers a solution to both. It allows platform owners to build out a service mesh incrementally, one service at a time, to provide security and reliability that a full service mesh provides. More importantly, Linkerd 2.0 addresses the needs of service owners directly with its service sidecar model to its focus on diagnostics and debugging. Linkerd 2.0 at its core is a service sidecar, running on a single service without requiring cluster-wide installation. Even without having a whole Kubernetes cluster, developers can run Linkerd and get: Instant Grafana dashboards of a service’s success rates, latencies, and throughput A topology graph of incoming and outgoing dependencies A live view of requests being made to your service Improved, latency-aware load balancing Installation Installing Linkerd 2.0 on a service requires no configuration or code changes. You can try Linkerd 2.0 on a Kubernetes 1.9+ cluster in 60 seconds by running: curl https://run.linkerd.io/install | sh Also check out the full Getting Started Guide. Linkerd 2.0 is also hosted on GitHub. Google Cloud hands over Kubernetes project operations to CNCF, grants $9M in GCP credits. Kubernetes 1.11 is here! VMware Kubernetes Engine (VKE) launched to offer Kubernetes-as-a-Service.
Read more
  • 0
  • 0
  • 2847

article-image-packt-partners-with-humble-bundle-to-bring-readers-a-stash-of-game-development-content
Richard Gall
19 Sep 2018
2 min read
Save for later

Packt partners with Humble Bundle to bring readers a stash of game development content

Richard Gall
19 Sep 2018
2 min read
Once again, we've teamed up with the guys at Humble Bundle to bring game developers - professional, hobbyists, or complete newbies - a huge stash of game development eBooks. In total you can buy $1467 worth of content for just $15! Click here to visit Humble Bundle now. Featuring eBooks and videos on some of the most popular tools in game design and development, we're sure that this is one of our best Bundles yet. From Unity to Blender, we've got useful resources on the software that matters. And with further content on AI and VR, you can also be sure you'll have what you need to learn the trends that are helping to define and drive the industry in 2018. As well as lots of content at incredible prices, you'll also be able to support some incredible organizations. As always, Humble Bundle makes it possible for you to donate a portion of the money you pay to charity. This month its the Electronic Frontier Foundation, who have been doing some exceptional work campaigning for a free and open internet. What you can get in this month's Humble Bundle For just $1 you can bag yourself... Creating a Game with Blender Game Engine [Video] Mastering SFML Game Development Game Physics Cookbook Basics of Coding with Unreal Engine 4 [Video] Beginning C++ Game Programming Three Months of Mapt Pro for $30 Or, you can pay at least $8 to get all that above and... Practical Game AI Programming Modern OpenGL C++ 3D Game Tutorial Series & 3D Rendering [Video] Mastering Unreal Engine 4.x Game Development [Video] Virtual Reality Blueprints Building a Character using Blender 3D [Video] Unity 2017 Mobile Game Development Unity 2017 Game Optimization (Second Edition) Practical Game Design Learning C# 7 By Developing Games with Unity 2017 (Third Edition) Or, you can pay at least $15 to get all of the content above and... Vulkan Cookbook Godot Engine Game Development Projects Swift 3 Game Development (Second Edition) Mastering Unity 2017 Game Development with C# (Second Edition) Getting Started with Unity 2018 (Third Edition) Unity 2017 Game AI Programming (Third Edition) Unity 2017 2D Game Development Projects Unity Virtual Reality Projects (Second Edition) Learning C++ by Creating Games with Unreal Engine 4 [Video] Game Development Patterns and Best Practices Learning C# by Developing Games with Unity    
Read more
  • 0
  • 0
  • 13935

article-image-now-deep-reinforcement-learning-can-optimize-sql-join-queries-says-uc-berkeley-researchers
Natasha Mathur
19 Sep 2018
6 min read
Save for later

Now Deep reinforcement learning can optimize SQL Join Queries, says UC Berkeley researchers

Natasha Mathur
19 Sep 2018
6 min read
A team of researchers, Sanjay Krishnan, Zongheng Yang, Ken Goldberg, Joseph M. Hellerstein, and Ion Stoica, from RISELab, UC Berkeley, have shown that deep reinforcement learning is successful at optimizing SQL joins, a problem studied for decades in the database community. Background SQL query optimization has been studied in the database community for almost 40 years. Join Ordering problem is central to query optimization. Despite that problem, there is still a multitude of research projects that attempt to better understand join optimizers performance in terms of multi-join queries. This research shows that reinforcement learning (deep RL) provides a new solution to deal with this problem. The traditional dynamic programs generally reuse the results that have been previously computed via memoization ( optimization technique used primarily to speed up computer programs) while Reinforcement Learning represents the information in the previously computed results with the help of a learned model. “We apply an RL model with a particular structure, a regression problem that associates the downstream value (future cumulative cost) with a decision (a join of two relations for a given query). Training this model requires observing join orders and their costs sampled from a workload. By projecting the effects of a decision into the future, the model allows us to dramatically prune the search space without exhaustive enumeration,” reads the research paper. The research was carried out mainly with two methods, namely, join ordering problem as a Markov Decision process and a deep reinforcement learning optimizer, DQ. Join Ordering using Reinforcement Learning Researchers formulated the join ordering problem as a Markov Decision Process (MDP), which formalizes a wide range of problems such as path planning and scheduling. Then a popular RL technique, Q-learning is applied to solve the join-ordering MDP, where: States, G: the remaining relations to be joined. Actions, c: a valid join out of the remaining relations. Next states, G’: naturally, this is the old “remaining relations” set with two relations removed and their resultant join added. Reward, J: estimated cost of the new join. The Q-function can be defined as Q(G, c), which evaluates the long-term cost of each join .i.e. the cumulative cost for all subsequent joins after the current join decision. Q(G, c) = J(c) + \min_{c’} Q(G’, c’). After access to the Q-function, joins can be ordered in a greedy fashion, which involves starting with an initial query graph, finding the join with the lowest Q(G, c), updating the query graph and repeat. Once done with this, Bellman’s Principle of Optimality is used which tells us if an algorithm is provably optimal. Bellman’s “Principle of Optimality” is one of the most important results in computing. Figure 1: Using a neural network to approximate the Q-function. The output layer, intuitively, means “If we make a join c on the current query graph G, how much does it minimize the cost of the long-term join plan?” Now, as there is no access provided to the true Q-function, it is approximated with the help of a neural network (NN). When an NN is used to learn the Q-function, the technique is called Deep Q-network (DQN). Now,  a neural net is trained that takes in (G, c) and outputs an estimated Q(G,c). DQ, the Deep Reinforcement Learning Optimizer The deep RL-based optimizer uses only a moderate amount of training data to achieve plan costs within 2x of the optimal solution on all cost models. DQ uses a multi-layer perceptron (MLP) neural network which is used to represent the Q-function. First, let's start with collecting data to learn the Q function. Here the past execution data is observed. DQ accepts a list of (G, c, G’, J) from any underlying optimizer. The second step is the featurization of states and actions. Now a neural net is used to represent Q(G, c), it is necessary to feed states G and actions c into the network as fixed-length feature vectors. This featurization process is simple where 1-hot vectors are used for encoding the set of all attributes that exist in the query graph. The third step is Neural network training & planning. Here, DQ makes use of a simple 2-layer fully connected network, by default. Training is done using a standard stochastic gradient descent. Once the Neural Network is trained, DQ accepts an SQL query which is in plain text. It then parses the SQL query into an abstract syntax tree form, featurizes the tree, and invokes the neural network when a candidate join is scored. Lastly, DQ can be periodically re-tuned with the feedback from real execution. Evaluating DQ For this, the researchers used a recently published Join Order Benchmark (JOB). The database comprises 21 tables from IMDB with 33 query templates and a total of 113 queries. Sizes of joins in the queries range from 5 to 15 relations. The training data is collected by DQ from exhaustive enumeration for cases when the number of relations to join is no larger than 10 as well as from greedy algorithm for additional relations. DQ is then compared against several heuristic optimizers (QuickPick; KBZ) as well as classical dynamic programs (left-deep; right-deep; zig-zag). Then the plans that are produced by each optimizer gets scored and compared to the optimal plans achieved via exhaustive enumeration. After this, to show that a learning-based optimizer can adapt to different environments, three designed cost models are used. Results Across all the cost models, the researchers found that DQ is competitive with the optimal solution without any prior knowledge of the index structure. Furthermore,  DQ produces good plans at a much faster speed as opposed to classical dynamic programs. Also, in the large-join regime, DQ achieves drastic speedups. The largest joins DQ performs 10,000x better as compared to exhaustive enumeration, over 1,000x faster as compared to zig-zag, and more than 10x faster than left/right-deep enumeration. “We believe this is a profound performance argument for such a learned optimizer: it would have an even more unfair advantage when applied to larger queries or executed on specialized accelerators (e.g., GPUs, TPUs)” says by Zongheng Yang in the RISELab Blog. For more details, check out the official research paper. MIT’s Transparency by Design Network: A high-performance model that uses visual reasoning for machine interpretability Swarm AI that enables swarms of radiologists, outperforms specialists or AI alone in predicting Pneumonia How Facebook data scientists use Bayesian optimization for tuning their online systems
Read more
  • 0
  • 0
  • 10729

article-image-github-introduces-experiments-a-platform-to-share-live-demos-of-their-research-projects
Bhagyashree R
19 Sep 2018
2 min read
Save for later

GitHub introduces ‘Experiments’, a platform to share live demos of their research projects

Bhagyashree R
19 Sep 2018
2 min read
Yesterday, GitHub introduced the Experiments platform for sharing demonstrations of their research projects and the idea behind them. With this platform, it aims to give the end users “insight into their research and inspire them to think audaciously about the future of software development”. Why has GitHub introduced ‘Experiments’? Just like Facebook and Google, GitHub regularly conducts research in machine learning, design, and infrastructure. The resultant products are rigorously evaluated for stability, performance, and security. If these products meet the success criteria for product release, they are then released for end users. Experiments will help GitHub share details about their research as they happen. ‘Semantic Code Search’: The first demo published on Experiments The GitHub researchers also published their first demo of an experiment called Semantic Code Search. This system helps you search code on GitHub using natural language. How does Semantic Code Search work? The following diagram shows how Semantic Code Search works: Source: GitHub Step1: Learning representations of code In this step, a sequence-to-sequence model is trained to summarize code by supplying (code, docstring) pairs. The docstring here is the target variable the model is trying to predict. Step 2: Learning representations of text phrases Along with learning representations of code, the researchers wanted to find a suitable representation for short phrases. To achieve this, they trained a neural language model by leveraging the fast.ai library. Using the concat pooling approach, the representations of phrases were extracted from the trained model by summarizing the hidden states. Step 3: Mapping code representations to the same vector-space as text In this step, the code representations learned from step 1 were mapped to the vector space of text. To accomplish this they fine-tuned the code-encoder. Step 4: Creating a semantic search system The last step is to bringing everything together to create a semantic search mechanism. The vectorized version of all code is stored in a database, and nearest neighbor lookups are performed to a vectorized search query. You can read the official announcement at GitHub’s blog. To read in more detail about Semantic Code Search, check out the researchers’ post and also try it on Experiments. Packt’s GitHub portal hits 2,000 repositories GitHub parts ways with JQuery, adopts Vanilla JS for its frontend Github introduces Project Paper Cuts for developers to fix small workflow problems, iterate on UI/UX, and find other ways to make quick improvements
Read more
  • 0
  • 0
  • 15195
article-image-aclu-sues-facebook-for-enabling-sex-and-age-discrimination-through-targeted-ads
Prasad Ramesh
19 Sep 2018
5 min read
Save for later

ACLU sues Facebook for enabling sex and age discrimination through targeted ads

Prasad Ramesh
19 Sep 2018
5 min read
Facebook has been in the news for privacy and data related controversies and scandals lately. Now, the American Civil Liberties Union (ACLU) filed charges with the Equal Employment Opportunity Commission against Facebook and 10 other organizations that advertised on the platform for discriminatory job advertisements on Facebook on the basis of gender and age. What is the complaint against Facebook? The case for the complaint is that certain job ads on Facebook were displayed only to male Facebook users, excluding women and transgender resulting in them not being able to see the ads. The complaint shows that Facebook provides advertisers with a “Lookalike Audience” tool to determine the target audience of Facebook users based on their sex and age. In fact, Facebook itself uses the “Lookalike Audience” tool to recruit for jobs at Facebook and Instagram. Charges are filed against a number of employers and employment agencies that are considered predominantly male-oriented industries such as construction, trucking, roofing and moving. However, on closer examination, the list also includes abas-USA, a software company. They used Facebook’s ad platform to advertise job vacancies such as ‘sales development representative’ by choosing to target the ads at only men between the age of 21 and 50.   Source: ACLU’s Exhibit on abas Below is the list of companies sues alongside Facebook of sex and age based discrimination in employment. abas USA, ERP software developer Defenders, Inc., home security systems company Nebraska Furniture Mart, a of home furniture retailer City of Greensboro, NC Police Department Need Work Today, an employment agency for farm, construction, trucking and aviation employers Renewal by Andersen LLC, window replacement and installation company Rice Tire, a tire retailer and auto repair services JK Moving Services, the largest independent moving company in the US Enhanced Roofing & Modeling, a roofing and remodeling company Xenith, manufacturer and retailer of athletics equipment Why is gender and age based job discrimination wrong? Advertisements account for most of Facebook’s revenues, and targeted ads allow advertisers to generate better ROI on advertising. This is done by the data provided by users and then tailoring the ads accordingly. This selective display of ads benefits both the employment agencies and Facebook as it receives money for doing so, says the complaint. One might argue that many postings for job roles like mechanics or truck drivers, were in male-dominated fields and not displaying them to female users does not discriminate against them as they would have not applied for those jobs anyway. Social convention may have one believe that women or older people might be less competent for roles that require heavy physical toiling. But by not allowing users to decide for themselves whether to apply for a given role, Facebook enabled gender and ageism discrimination by employers. As per the law, no job opportunities should be hidden on the basis of any discrimination. The EEOC home page reads as follows: “…it (is) illegal to discriminate against a job applicant or an employee because of the person’s race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age (40 or older), disability or genetic information. It is also illegal to discriminate against a person because the person complained about discrimination, filed a charge of discrimination, or participated in an employment discrimination investigation or lawsuit.” How is the public reacting to this development? Some people are happy with the filing and some are displeased with Facebook for this. https://twitter.com/drummike2012/status/1042143549255499777 https://twitter.com/CadyMcClain/status/1042054873494126592 A comment by reddit user Racecarlock reads “Facebook is officially my new word for douchebag”. There are encouraging comments like “There are plenty of female truck drivers who’d like a chance to be included. The cancer-inducing comments here should show themselves the door.” by user boxinafox. Another reddit comment by Sorge74 read “I wouldn't want my ads targeting 70 year olds if it cost me more money to do so. But I can definitely see how that would be illegal.” While there are job portals specifically for finding jobs, people in need could miss out on a potential job opportunity if they’re unable to see a Facebook job advertisement. What’s next? The ACLU website states: “Facebook has come under heavy scrutiny regarding its paid advertising platform, and whether it allows and encourages advertisers to engage in prohibited discrimination based on protected categories like race, national origin, age, and now gender.” This charge is meant to end all class-based discriminatory treatment and its impact. It includes all other class-based claims that are actionable under Title VII. The charges are filed on behalf of all individuals across USA who have been excluded employment advertisements via Facebook’s advertising platform based on their sex and age. The complaint states that through the field charge, and legal action, female and other non-male members, seek all injunctive, equitable, legal, monetary, punitive, and/or other forms of relief or damages that are available under Title VII. If facebook is found guilty of the charges, it may mean a major overhaul for Facebook as a product from what kind of data they collect on users to what kind of targeting options they provide their advertisers. You can expect Facebook to fight these charges tooth and nail as this could directly hit their bottom line significantly. In a statement to ProPublica, Facebook spokesperson Joe Osborne said: “There is no place for discrimination on Facebook; it’s strictly prohibited in our policies. We look forward to defending our practices once we have an opportunity to review the complaint.” You can read the brief and complaint from the ACLU website. How Facebook data scientists use Bayesian optimization for tuning their online systems Mark Zuckerberg publishes Facebook manifesto for safeguarding against political interference SapFix and Sapienz: Facebook’s hybrid AI tools to automatically find and fix software bugs
Read more
  • 0
  • 0
  • 12205

article-image-a-new-model-optimization-toolkit-for-tensorflow-can-make-models-3x-faster
Prasad Ramesh
19 Sep 2018
3 min read
Save for later

A new Model optimization Toolkit for TensorFlow can make models 3x faster

Prasad Ramesh
19 Sep 2018
3 min read
Yesterday, TensorFlow introduced a new model optimization toolkit. It is a suite of techniques that both new and experienced developers can leverage to optimize machine learning models. These optimization techniques are suitable for any TensorFlow model and will be particularly of use to developers running TensorFlow Lite. What is model optimization in TensorFlow? Support is added for post-training quantization to the TensorFlow Lite conversion tool. This can theoretically result in up to four times more compression in the data and up to three times faster execution for relevant machine learning models. On quantizing the models they work on, developers will also gain additional benefits of less power consumption. Enabling post-training quantization This quantization technique is integrated into the TensorFlow Lite conversion tool. Initiating is easy. After building a TensorFlow model, you can simple enable the ‘post_training_quantize’ flag in the TensorFlow Lite conversion tool. If the model is saved and stored in saved_model_dir, the quantized tflite flatbuffer can be generated. converter=tf.contrib.lite.TocoConverter.from_saved_model(saved_model_dir) converter.post_training_quantize=True tflite_quantized_model=converter.convert() open(“quantized_model.tflite”, “wb”).write(tflite_quantized_model) There is an illustrative tutorial that explains how to do this. To use this technique for deployment on platforms currently not supported by TensorFlow Lite, there are plans to incorporate it into general TensorFlow tooling as well. Post-training quantization benefits The benefits of this quantization technique include: Approx Four times reduction in model sizes. 10–50% faster execution in models consisting primarily of convolutional layers. Three times the speed for RNN-based models. Most models will also have lower power consumption due to reduced memory and computation requirements. The following graph shows model size reduction and execution time speed-ups for a few models measured on a Google Pixel 2 phone using a single core. We can see that the optimized models are almost four times smaller. Source: Tensorflow Blog The speed-up and model size reductions do not impact the accuracy much. The models that are already small to begin with, may experience more significant losses. Here’s a comparison: Source: Tensorflow Blog How does it work? Behind the scenes, optimizations are run by reducing the precision of the parameters (the neural network weights). The reduction is done from their training-time 32-bit floating-point representations to much smaller and efficient 8-bit integer representations. These optimizations ensure pairing the less precise operation definitions in the resulting model with kernel implementations that use a mix of fixed and floating-point math. This results into executing the heaviest computations quickly, but with lower precision. However, the most sensitive ones are still computed with high precision. This gives little accuracy losses. To know more about model optimization visit the TensorFlow website. What can we expect from TensorFlow 2.0? Understanding the TensorFlow data model [Tutorial] AMD ROCm GPUs now support TensorFlow v1.8, a major milestone for AMD’s deep learning plans
Read more
  • 0
  • 0
  • 13361

article-image-google-plans-to-let-the-amp-project-have-an-open-governance-model-soon
Savia Lobo
19 Sep 2018
3 min read
Save for later

Google plans to let the AMP Project have an open governance model, soon!

Savia Lobo
19 Sep 2018
3 min read
Yesterday, Malte Ubl, tech leader in the AMP project at Google, announced that the AMP Project team is planning to set up an open governance model for the AMP Project. Following this, the team released a proposal for a new, open governance model. The AMP Project team along with the rest of the AMP community plan to refine the governance proposal. They also plan to carry on this process at the AMP Contributor Summit that will be held next week from September 25th to 26th at Google, Mountain View, United States. The review period for the proposal will end on October 25, 2018 with a goal of implementing the new governance model shortly thereafter. Why an open governance model for AMP? Malte Ubl, describes in his post that, “When choosing a governance model (a system that describes how decisions are made) for AMP,  we initially focused on agility. AMP has always been powered by the voices and feedback of the developers and organizations that use it; however, governance was centered around the tech lead, who ultimately decided what got executed and how. While this works great for smaller projects, we’ve found that it doesn’t scale to the size of the AMP Project today.” The AMP Project team wanted to move to a model that could explicitly give a voice to all constituents of the community, including those who cannot contribute code themselves, such as end-users. Thus, the team decided to move on to a consensus-seeking governance model following the footsteps of the Node.js project, which has a similar implementation. AMP currently has an overall 710 contributors which includes only 22% from Google employees, and 78% coming from other companies such as Twitter, Pinterest, Yahoo, and eBay. Interestingly, in the last 30 days alone over 350 contributions landed in AMP! Significant changes in the new open governance model for AMP Power to make decisions now moves to Technical Steering Committee (TSC) The power to make significant decisions in the AMP Project will move from a single Tech Lead to a Technical Steering Committee (TSC). This will include representatives from companies that have committed resources to building AMP, with the end goal of not having any company sit on more than a third of the seats. Plans to set up an Advisory Committee to advise the TSC An Advisory Committee with representation from many of AMP’s constituencies will advise the TSC. Representatives from publishers (El País, Washington Post and Terra), e-commerce sites (AliExpress and eBay) and platforms (Cloudflare and Automattic) as well as advocates for an open web (Léonie Watson of The Paciello Group, Nicole Sullivan of Google/Chrome, and Terence Eden) have agreed to join the Advisory Committee. Working groups will replace informal teams Working Groups with ownership over certain aspects of AMP (such as the UI, infrastructure and documentation) will replace the informal teams that exist today. These Working Groups will have a clear mechanism for input and a well-defined decision-making process. To know more about the goals of the open governance model in detail, head over to Malte Ubl’s post on AMP blog. Google wants web developers to embrace AMP. Great news for users, more work for developers Microsoft Azure’s new governance DApp: An enterprise blockchain without mining Progressive Web AMPs: Combining Progressive Wep Apps and AMP
Read more
  • 0
  • 0
  • 9952
article-image-the-much-loved-reverse-chronological-twitter-timeline-is-back-as-twitter-attempts-to-break-the-filter-bubble
Natasha Mathur
19 Sep 2018
3 min read
Save for later

The much loved reverse chronological Twitter timeline is back as Twitter attempts to break the ‘filter bubble’

Natasha Mathur
19 Sep 2018
3 min read
Twitter’s CEO Jack Dorsey announced on Monday that Twitter’s bringing back the much-loved and original ‘reverse chronological order theme’ for the Twitter news feed. You can enable the reverse chronological theme by making setting changes. https://twitter.com/jack/status/1042038232647647232 Twitter is also working on providing users with a way to easily toggle between the two different themes i.e. a timeline of tweets most relevant to you and a timeline of all the latest tweets. To change to the reverse chronological order timeline, go to settings on the twitter, then select privacy option, go to the content section and uncheck the box that says “Timeline- show the best tweets first”. Twitter also removed the ‘in case you missed it’ section from the settings. https://twitter.com/TwitterSupport/status/1041838957896450048 The Reverse Chronological theme was Twitter’s original content presentation style, much before it made the ‘top tweets algorithm’ as a default option, back in 2016. When Twitter announced that it was changing its timeline so that it wouldn’t show the tweets in chronological order anymore, a lot of people were unhappy. In fact, people despised the new theme so much that a new hashtag #RIPTwitter was trending back then. Twitter with its new algorithm in 2016 focussed mainly on bringing the top, most happening, tweets to light. But, a majority of Twitter users felt differently. People enjoyed the simpler reverse-chron Twitter where people could get real-time updates from their close friends, family, celebrities, etc, not the twitter that shows only the most relevant tweets stacked together. Twitter defended the new approach as it tweeted yesterday that “We’ve learned that when showing the best Tweets first, people find Twitter more relevant and useful. However, we've heard feedback from people who at times prefer to see the most recent Tweets”. Also, Twitter has been making a lot of changes recently after Twitter CEO, Jack Dorsey testified before the House Energy and Commerce Committee regarding Twitter’s algorithms and content monitoring. Twitter mentioned that they want people to have more control over their timeline. https://twitter.com/TwitterSupport/status/1042155714205016064 Public reaction to this new change has been largely positive with a lot of people criticizing the company’s Top Tweet timeline.   https://twitter.com/_Case/status/1041841407739260928 https://twitter.com/terryb600/status/1041847173770620929   https://twitter.com/smithant/status/1041884671921930240 https://twitter.com/alliecoyne/status/1041850426159583232 https://twitter.com/fizzixrat/status/1041881429477654528 One common pattern observed is that people brought up Facebook a lot while discussing this new change. https://twitter.com/_Case/status/1042068118997270528 https://twitter.com/Depoetic/status/1041842498459578369 https://twitter.com/schachin/status/1041925075698503680 Twitter seems to have dodged a bullet by giving back to its users what they truly want. Twitter’s trying to shed its skin to combat fake news and data scandals, says Jack Dorsey Facebook, Twitter open up at Senate Intelligence hearing, committee does ‘homework’ this time Jack Dorsey to testify explaining Twitter algorithms before the House Energy and Commerce Committee  
Read more
  • 0
  • 0
  • 9150

article-image-firefox-reality-1-0-a-browser-for-mixed-reality-is-now-available-on-viveport-oculus-and-daydream
Bhagyashree R
19 Sep 2018
2 min read
Save for later

Firefox Reality 1.0, a browser for mixed reality, is now available on Viveport, Oculus, and Daydream

Bhagyashree R
19 Sep 2018
2 min read
After announcing their plans of introducing a web browser for virtual and augmented reality headsets earlier this year, Mozilla launched Firefox Reality 1.0 yesterday. The browser will be available in the Viveport, Oculus, and Daydream app stores. What features will you find in Firefox Reality? The browser is built from the ground up to work on mixed reality headsets with the following features: Voice search Typing a search query when you are wearing a VR headset is not a pleasant experience. Using Firefox Reality you can search the web using your voice. Smooth and fast performance Firefox Reality uses Quantum engine, which Mozilla calls "the next-generation web engine for Firefox users". With the help of this engine, it provides a smooth, fast, and secure user experience. Switch between 2D and 3D mode Firefox Reality supports both 2D and 3D mode for web search. You can seamlessly switch between these two modes according to your preference. The home screen becomes your entertainment hub You can find games, videos, stories, and other entertainment content directly on the home screen. The mixed reality team is working with more creators around the world to bring more engaging content to the browser. What’s in the future? In the announcement, they have mentioned that they will soon be launching Firefox Reality 1.1. We can expect more features in the coming release such as support for bookmarks, 360 videos, accounts, and more. Mozilla has actively been contributing in the mixed reality world by introducing WebVR, WebAR, and A-Frame. With the release of Firefox Reality they have taken the next step to make it the best browser for mixed reality: “We are in this for the long haul. This is version 1.0 of Firefox Reality and version 1.1 is right around the corner. We have an always-growing list of ideas and features that we are working to add to make this the best browser for mixed reality. We will also be listening and react quickly when we need to provide bug fixes and other minor updates.” To see read more about Firefox Reality, check out Mozilla’s official announcement. Mozilla releases Firefox 62.0 with better scrolling on Android, a dark theme on macOS, and more Firefox Nightly browser: Debugging your app is now fun with Mozilla’s new ‘time travel’ feature Mozilla is building a bridge between Rust and JavaScript
Read more
  • 0
  • 0
  • 15249
Modal Close icon
Modal Close icon