Simplified data transformations for machine learning in BigQuery

Building machine learning models on structured data commonly requires a large number of data transformations in order to be successful. Furthermore, those transformations also need to be applied at the time of predictions, usually by a different data engineering team than the data science team that trained those models. Keeping the set of transformations consistent between training and inference can be quite hard because of differences in toolsets between the two teams. We’re announcing some new features in BigQuery ML that can help preprocess and transform the data with simple SQL functions. In addition, because BigQuery automatically applies these transformations at the time of predictions, the productionization of ML models is greatly simplified.In a 2003 book on exploratory data mining, Dasu and Johnson observed that 80% of data analysis is spent on cleaning the data. This hasn’t changed with machine learning. Here at Google Cloud, we often observe that in our machine learning projects, a vast majority of the time is spent getting the data ready for machine learning. This includes tasks such as:Writing ETL pipelines to get the data from various source systems into a single place (a data lake)Cleaning the data to correct errors in the data collection or extractionConverting the raw data in the data lakes into a format that makes it possible to join datasets from different sourcesPreprocessing the data to remove outliers, impute missing values, scale numerical columns, embed sparse columns, and moreEngineering new features from the raw data using operations such as feature crosses to allow the ML models to be simpler and converge faster Converting the joined, preprocessed, and engineered data into a format, such as TensorFlow Records, that’s efficient for machine learningReplicating this series of data processing steps in the inference system, which might be written in a different programming languageProductionizing the training and prediction pipelinesTaking advantage of a data warehouse with built-in machine learningA large part of machine learning projects consists of data wrangling and moving data around. Instead of writing custom ETL pipelines for each project to move data into a data lake, and task every ML project with having to understand the data and convert it into a joinable form, we recommend that organizations build an enterprise data warehouse (EDW). If the EDW is cloud-based and offers separation of compute and storage (like BigQuery does), any business unit or even external partner can access this data without having to move any data around. All that’s needed to access the data is an appropriate Identity and Access Management (IAM) role.With this type of EDW, data engineering teams can write the ETL pipelines once to capture changes in source systems and flush them to the data warehouse, rather than machine learning teams having to code them piecemeal. Data scientists can focus on gaining insights from the data, rather than on converting data from one format to another. And if the EDW provides machine learning capabilities and integration with a powerful ML infrastructure such as AI Platform, you can avoid moving data entirely. On Google Cloud, when you train a deep neural network model in BigQuery ML, the actual training is carried out in AI Platform—the linkage is seamless.For example, to train a machine learning model on a dataset of New York taxicab rides to predict the fare, all we need is a SQL query (see this earlier blog post for more details):Productionizing with scheduled queriesOnce the model has been trained, we can determine the fare for a specific ride by providing the pickup and dropoff points:This returns:If you use a cloud-based, modern EDW like BigQuery that provides machine learning capabilities, much of the pain associated with data movement goes away. Note how the query above is able to train an ML model simply off a SELECT statement. This takes care of the first three pain points we identified at the beginning of this article. Productionizing the training of the ML model and carrying out batch predictions is as simple as scheduling the above two SQL queries, thus greatly reducing the pain point associated with productionization. The BigQuery ML preprocessing and transformation features we’re announcing today address the rest of the obstacles, allowing you to carry out data munging effectively, train machine learning models quickly, and carry out predictions without fear of training-serving skew. Preprocessing in BigQuery MLA data warehouse stores the raw data in a way that is applicable to a wide variety of data analysis tasks. For example, dashboards commonly depict data in the data warehouse, and data analysts commonly carry out ad hoc queries. However, a common requirement when training machine learning models is to not train on the raw data, but to filter out outliers, and carry out operations such as bucketizing and scaling in order to improve trainability and convergence.Filtering can be carried out in SQL using a WHERE clause, like this:Once we determine the operations necessary to clean and correct the data, it is possible to create a materialized view:Because materialized views are currently in alpha in BigQuery, you might choose to use a logical view or export the data to a new table instead. The advantage of using a materialized view in the ML context is that you can offload the problem of keeping the data up to date in BigQuery. As new rows are added to the original table, cleaned-up rows will appear in the materialized view.Similarly, scaling can be implemented in SQL. For example, this code does a zero-norm of the four input fields:It is possible to store these scaled data in the materialized view, but because the mean/variance will change over time, we do not recommend doing this. The scaling operation is an example of ML preprocessing operations that require an analysis pass (here, to determine the mean and variance). Because the results of the analysis pass will change as new data is added, it is better to perform preprocessing operations that require an analysis pass as part of your ML training query. Note also that we are taking advantage of convenience UDFs defined in a community GitHub repository.BigQuery provides out-of-the-box support for several common machine learning operations that do not require a separate analysis pass through the data. For example, here’s an example of bucketizing the inputs, knowing the latitude and longitude boundaries of New York:Note that now the fields are categorical and correspond to the bin that the pickup and dropoff points correspond to:Limiting training-serving skew using TRANSFORMThe problem with training a model as shown above is that productionization becomes quite hard. It is no longer as simple as sending the latitudes and longitudes to the model. Instead, we also have to remember and replicate the preprocessing steps in the prediction pipeline:This is why we’re announcing support for the TRANSFORM keyword. Put all your preprocessing operations in a special TRANSFORM clause, and BigQuery ML will automatically carry out the same preprocessing operations during prediction. This helps you limit training-serving skew.The following example shows computing GIS quantities, carrying out the extraction of features from a timestamp, doing a feature cross, and even concatenating the various pickup and dropoff bins (very complex preprocessing, in other words):The prediction code remains very straightforward and simple and does not have to replicate any of the preprocessing steps:Enjoy these new features!Get started:Find a list of preprocessing functions in the documentation.The queries in this post can be found in these two notebooks on GitHub. Try them out from an AI Platform notebook or from Colab.To learn more about BigQuery ML, try this quest in Qwiklabs.Check out chapter 9 of BigQuery: The Definitive Guide for a thorough introduction to machine learning in BigQuery.
Quelle: Google Cloud Platform

Last month today: November on GCP

November brought lots of news and tips, while cloud practitioners gathered at Next UK. It was, dare we say, a brimming cornucopia of cloud technology. Here’s a quick look at last month’s highlights from around Google Cloud Platform (GCP).Paving the path to cloudIn November, we announced the acquisition of CloudSimple, which provides a secure, dedicated environment to run VMware workloads in the cloud. This makes it easier for businesses running all kinds of apps on VMware to easily migrate those workloads to the cloud. Enterprise customers want simple, flexible ways to migrate their workloads, so we’re excited to bring this option to you.Cloud Run became generally available last month, making it easier for developers to write code for cloud apps in any language, using any binary, in a fully managed way. It’s both natively serverless and based on containers. The announcement covered both Cloud Run, which is a serverless execution environment for running stateless HTTP-driven containers, and Cloud Run for Anthos, which lets you deploy Cloud Run apps to an Anthos GKE cluster on-prem or in Google Cloud. Our Bare-Metal Solution became available at Next UK, giving Google Cloud users another option for easy cloud migration. It’s designed for those on-prem apps that might be holding back cloud migration, such as Oracle databases. Bare Metal Solution consists of all the infrastructure you need to run specialized workloads, connected with a dedicated, low-latency interconnect to all native Google Cloud services. And here’s a wrapup of all the news from the Next UK show.Ever-easier development for cloudDevelopers creating Kubernetes-native apps can now use Skaffold, an automation tool that helps build and manage container images across registries, update Kubernetes manifests, and redeploy apps when code changes. Skaffold is the underlying engine of Cloud Code, and it lets you focus on code changes and see them reflected right away in your cluster. Data science platform Kaggle now integrates with AutoML products to help its more than 3.5 million community members learn and apply machine learning. Google’s AutoML is a suite of products that lets users build custom ML models for problems in data, vision, natural language, structured data and more. This new integration means Kaggle users can access the AutoML SDK directly from Kaggle Notebooks—and start using ML models without a large and intimidating upfront time investment.What’s new on the shelves at Google CloudThe newly introduced Network Intelligence Center can monitor, verify, and optimize your network across the cloud and on-prem data centers. Network operations teams often work with fragmented tools and legacy systems to understand network health, which becomes especially problematic when operating in a multi-cloud environment. Network Intelligence Center is designed for simpler, comprehensive network monitoring, with four modules to start: connectivity tests, network topology, performance dashboard, and firewall metrics and insights.Our Contact Center AI platform became generally available last month, letting you add personalized customer care to your services. Two features of Contact Center AI, Virtual Agent and Agent Assist (which just became generally available), both improve the customer experience while increasing operational efficiency. Virtual Agent lets you offer customers 24/7 access to immediate, conversational self-service, while Agent Assist helps live agents with continuous support in real time, including call transcription and recommendations for workflows and more.That’s a wrap for November! Till next time, keep up with us on Twitter.
Quelle: Google Cloud Platform

Google: Androids Digital Wellbeing bekommt Focus Mode

Mit dem nun für alle Nutzer freigeschalteten Focus Mode können Nutzer von Android 10 bestimmte Apps ausblenden, um Ablenkungen zu vermeiden. Die Anwendungen werden ausgegraut und können nicht mehr ohne weiteres geöffnet werden, auch Benachrichtigungen werden deaktiviert. (Google, Soziales Netz)
Quelle: Golem

Google Cloud Platform is now FedRAMP High authorized

At Google Cloud, we’re committed to providing public sector agencies with technology to help improve citizen services, increase operational effectiveness, and better meet their missions. We  build our products with security and data protection as core design principles, and we regularly validate these products against the most rigorous regulatory requirements and standards.  To that end, we are proud to announce that Google Cloud Platform (GCP) has received FedRAMP High authorization to operate (ATO) for 17 products in five cloud regions, and we’ve expanded our existing FedRAMP Moderate authorization to 64 products in 17 cloud regions. This means that public sector agencies now have the ability to run compliant workloads at the highest level of civilian classification.How FedRAMP certification worksFedRAMP is a U.S. government-wide program that provides a standardized approach to security assessment, authorization, and continuous monitoring for cloud products and services offered to US federal government agencies. Most federal agency cloud deployments and service models, other than certain on-premises private clouds, must meet FedRAMP requirements at the appropriate (Low, Moderate, or High) risk impact level. While Google Cloud already maintains an authorization for both GCP and G Suite at the Moderate impact level, achieving High status on GCP means we can provide greater access to technology for our most security-sensitive customers. And while the FedRAMP ATO is required for federal agencies, it is also a security benchmark for other industries, including financial services, health, and manufacturing. If you’re a GCP customer, you can enjoy the benefit of a FedRAMP High-authorized infrastructure at no additional cost and without any change in your services. Obtaining FedRAMP High required documenting at length how our infrastructure and platforms help our customers keep their data safe. We carefully translated the principles of our BeyondCorp model, including zero-trust networking, that we have implemented at Google into the NIST 800-53r4 security controls, which were then documented and assessed by a third-party organization. As part of this process, we also completed FIPS 140-2 L1 overall and L3 physical FIPS validation of the internal version of Google’s Titan Security Key authenticator. We worked closely with the FedRAMP Joint Authorization Board to document Google’s monitoring, patching, and vulnerability scanning infrastructure in order to meet the rigorous continuous monitoring requirements of FedRAMP High. Receiving a FedRAMP High ATO means we can support agency missions that require some of the highest levels of data protection for unclassified workloads. These could include health care delivery, emergency response, space operations, and many others. Supporting the public sector with cloud innovationThese new certifications reflect our continued investment and support for customers in the U.S. public sector, and is another example of momentum we’re seeing as government agencies move to the cloud. For example, we recently teamed up with researchers from NASA-FDL to help identify life beyond earth with our machine-learning capabilities, and the Library of Congress team spoke at Google Cloud Next ‘19 on how they’re making books accessible to the visually impaired. We are also helping the U.S. Air Force modernize its modeling and simulation training infrastructure.  At the state and local level, the State of Arizona plans to migrate thousands of employees and contractors to G Suite to improve security and collaboration. It anticipates millions of dollars in cost savings over the next three years. And New York City Cyber Command is partnering with Google Cloud to automate and speed log analysis and other initiatives to protect New Yorkers from malicious cyber activity, while also safeguarding data privacy on mobile devices and across public WiFi networks. Welcoming new public sector leadersToday’s news reinforces our commitment to the public sector. Earlier this year, I joined Google Cloud to lead our public sector efforts. We’ve also added Brent Mitchell to lead Google Cloud’s state and local government strategy, and Lesta Brady to head up our federal civilian sales strategy. And we recently announced a new Global Public Sector organization within Google Cloud, with a charter of engaging with public sector customers worldwide—and have welcomed new leaders in Canada, EMEA, and Latin America into this organization. Finally, I’m excited today to announce that long-time Googler and Chief Internet Evangelist Vint Cerf and his group of technology specialists will be joining my team to bring their expertise to public sector customers globally. His team will continue to evangelize the potential of the internet and the solutions it can enable, which is critically important for public sector decision-makers to understand as part of the delivery of their services. We look forward to continuing to help federal, state, and local government agencies innovate, and will pursue additional global certifications to meet their needs. You can learn more here about our public sector work.
Quelle: Google Cloud Platform

RSA-240: Faktorisierungserfolg gefährdet RSA nicht

Forscher haben auf einem Rechencluster eine 795 Bit große Zahl faktorisiert. Das RSA-Verschlüsselungs- und Signaturverfahren basiert darauf, dass Faktorisierung schwierig ist. Für die praktische Sicherheit von RSA mit modernen Schlüssellängen hat dieser Durchbruch heute aber wenig Bedeutung. (Wissenschaft, Technologie)
Quelle: Golem