Author: ultroni1

  • Create custom AI models with Azure Machine Learning

    The availability of sophisticated AI models can help organizations reduce significantly the intimidating amount of resources a data science project can require. Let’s see how organizations can tackle machine learning challenges and operations with Azure Machine Learning.

    Machine learning challenges and machine learning operations

    Maintaining AI solutions typically requires machine learning lifecycle management to document and manage data, code, model environments, and the machine learning models themselves. You need to establish processes for developing, packaging, and deploying models, as well as monitoring their performance and occasionally retraining them. And most organizations are managing multiple models in production at the same time, adding to the complexity.

    To cope effectively with this complexity, some best practices are required. They focus on cross-team collaboration, automating and standardizing processes, and ensuring models can be easily audited, explained, and reused. To get this done, data science teams rely on the machine learning operations approach. This methodology is inspired by DevOps (development and operations), the industry standard for managing operations for an application development cycle, since the struggles of developers and data scientists are similar.

    infrastructure services

  • Develop AI solutions with Azure AI Services

    This unit discusses the prebuilt AI models that are available in Azure AI Services. They are a solid alternative to developing internal custom AI models.

    What is Azure AI Services?

    When considering adopting AI into your business, you should consider prebuilt AI services first. Azure AI Services is a Microsoft product that delivers AI as SaaS. It includes pretrained models developed by Microsoft global researchers and data scientists to solve common problems. To avoid reinventing the wheel, businesses can leverage prebuilt services to achieve quality and accelerate delivery of technology solutions.

    It’s better to use the Azure AI Services that offer prebuilt AI services in vision, speech, language, search, or generative AI to solve common scenarios. This brings AI within reach of every developer and organization without requiring machine learning expertise. As a result, it enables developers of all skill levels to easily add intelligence to new or existing business applications.

    Using Azure AI Services can:

    • Save costs: Since AI Services is serverless, they’re usually less costly than developing and training custom models from scratch internally.
    • Give deployment flexibility: You can export AI Services models and run them wherever you need, in the cloud, on-premises, or on the edge.
    • Provide enterprise-level security: AI services provide a layered security model, including authentication with Microsoft Entra credentials, a valid resource key, and Azure Virtual Networks.
    • Connect to an ecosystem of products: AI services are part of a broad ecosystem that includes automation and integration tools, deployment options, Docker containers for secure access, and tools for big data scenarios.
    hrms

  • Learn the Microsoft AI approach

    AI is disrupting every industry and every business. For the last decade, AI has enabled companies of all sizes to achieve better business results. There’s already a mainstream business use of AI thanks to these three trends:

    • Access to massive amounts of data.
    • Access to massive computing power through the cloud.
    • Access to AI algorithms.

    AI is experiencing major breakthroughs. A new generation of Large Language Models (LLMs) enables new use cases that weren’t possible a few years ago, such as those based on high-quality generative AI. Based on these technologies, organizations will experience a second wave of AI-powered transformation. However, businesses need an easy way to access the latest AI capabilities to take full advantage of them.

    Microsoft is working to democratize AI use. It has designed a wide range of solutions and services to bring AI to everyone, irrespective of their level of AI expertise. There are four approaches, varying based on the level of AI and coding expertise required.

    financial

  • Prepare for guided project

    You’ll be using the .NET Editor as your code development environment. You’ll be writing code that uses string and numeric variables, performs calculations, and displays results to a console.

    Project overview

    You’re developing a Student Grading application that automates the calculation of current grades for each student in a class. The parameters for your application are:

    • You’re given a short list of four students and their five assignment grades.
    • Each assignment grade is expressed as an integer value, 0-100, where 100 represents 100% correct.
    • Final scores are calculated as an average of the five assignment scores.
    • Your application needs to perform basic math operations to calculate the final grades for each student.
    • Your application needs to output/display each student’s name and final score.

    Currently, the teachers grade book shows the graded assignments for each student as follows:Copy

    Sophia: 93, 87, 98, 95, 100
    
    Nicolas: 80, 83, 82, 88, 85
    
    Zahirah:   84, 96, 73, 85, 79
    
    Jeong:  90, 92, 98, 100, 97
    

    The teacher requires that the calculated grades for each student are displayed as follows:Copy

    Student     Grade
    Sophia      94.6  A
    Nicolas     83.6  B
    Zahirah     83.4  B
    Jeong       95.4  A
    
    feature

  • Locate commands

    cmdlet (pronounced “command-let”) is a compiled command. A cmdlet can be developed in .NET or .NET Core and invoked as a command within PowerShell. Thousands of cmdlets are available in your PowerShell installation. The challenge lies in discovering what the cmdlets are and what they can do for you.

    Cmdlets are named according to a verb-noun naming standard. This pattern can help you to understand what they do and how to search for them. It also helps cmdlet developers create consistent names. You can see the list of approved verbs by using the Get-Verb cmdlet. Verbs are organized according to activity type and function.

    Here’s a part of the output from running Get-Verb:

    OutputCopy

    Verb        AliasPrefix Group          Description
    ----        ----------- -----          -----------
    Add         a           Common         Adds a resource to a container, or atta…
    Clear       cl          Common         Removes all the resources from a contai…
    

    This listing shows the verb and its description. Cmdlet developers should use an approved verb, and also ensure that the verb description fits their cmdlet’s function.

    Three core cmdlets allow you to delve into what cmdlets exist and what they do:

    • Get-Command: The Get-Command cmdlet lists all of the available cmdlets on your system. Filter the list to quickly find the command you need.
    • Get-Help: Run the Get-Help core cmdlet to invoke a built-in help system. You can also run an alias help command to invoke Get-Help but improve the reading experience by paginating the response.
    • Get-Member: When you call a command, the response is an object that contains many properties. Run the Get-Member core cmdlet to drill down into that response and learn more about it.
    erp

  • What is PowerShell?

    PowerShell consists of two parts: a command-line shell and a scripting language. It started out as a framework to automate administrative tasks in Windows. PowerShell has grown into a cross-platform tool that’s used for many kinds of tasks.

    A command-line shell lacks a graphical interface, where you use a mouse to interact with graphical elements. Instead, you type text commands into a computer console. Here are some of the benefits of using a console:

    • Interacting with a console is often faster than using a graphical interface.
    • In a console, you can run batches of commands, so it’s ideal for task automation for continuous-integration pipelines.
    • You can use a console to interact with cloud resources and other resources.
    • You can store commands and scripts in a text file and use a source-control system. This capability is probably one of the biggest benefits, because your commands are repeatable and auditable. In many systems, especially government systems, everything must be traced and evaluated, or audited. Audits cover everything from database changes to changes done by a script.

    Features

    PowerShell shares some features with traditional shells:

    • Built-in help system: Most shells have some kind of help system, in which you can learn more about a command. For example, you can learn what the command does and what parameters it supports. The help system in PowerShell provides information about commands and also integrates with online help articles.
    • Pipeline: Traditional shells use a pipeline to run many commands sequentially. The output of one command is the input for the next command. PowerShell implements this concept like traditional shells, but it differs because it operates on objects over text. You learn more about this feature later in this module.
    • Aliases: Aliases are alternate names that can be used to run commands. PowerShell supports the use of common aliases such as cls (clear the screen) and ls (list the files). Therefore, new users can use their knowledge of other frameworks and don’t necessarily have to remember the PowerShell name for familiar commands.

    PowerShell differs from a traditional command-line shell in a few ways:

    • It operates on objects over text. In a command-line shell, you have to run scripts whose output and input might differ, so you end up spending time formatting the output and extracting the data you need. By contrast, in PowerShell you use objects as input and output. That means you spend less time formatting and extracting.
    • It has cmdlets. Commands in PowerShell are called cmdlets (pronounced commandlets). In PowerShell, cmdlets are built on a common runtime rather than separate executables as they are in many other shell environments. This characteristic provides a consistent experience in parameter parsing and pipeline behavior. Cmdlets typically take object input and return objects. The core cmdlets in PowerShell are built in .NET Core, and are open source. You can extend PowerShell by using more cmdlets, scripts, and functions from the community and other sources, or you can build your own cmdlets in .NET Core or PowerShell.
    • It has many types of commands. Commands in PowerShell can be native executables, cmdlets, functions, scripts, or aliases. Every command you run belongs to one of these types. The words command and cmdlet are often used interchangeably, because a cmdlet is a type of command.
    digital transformation

  • When should you use Azure Cloud Shell?

    As an IT Admin for Contoso Corporation, you need alternatives to interact with Azure resources from the command line even when not using your default administrative device.

    You can use Azure Cloud Shell to:

    • Open a secure command-line session from any browser-based device.
    • Interact with Azure resources without the need to install plug-ins or add-ons to your device.
    • Persist files between sessions for later use.
    • Use either Bash or PowerShell, whichever you prefer, to manage Azure resources.
    • Edit files (such as scripts) via the Cloud Shell editor.
    data analytics

  • How does Azure Cloud Shell work?

    As an IT admin for Contoso Corporation, you’re frequently on-call to perform administrative tasks and resolve workload disruptions to resources in your organization’s Azure subscriptions. When visiting a family member during a weekend that you’re on call, the development team notifies you of a problem with an Azure virtual machine (VM). The VM became nonresponsive during scheduled maintenance for the upgrade of an application that runs on it. Because the developers weren’t granted access to the underlying Azure virtual machine hosting infrastructure, they’re only able to remotely access the VM when it’s operating normally. So, you’re being called to diagnose and remediate the problem.

    Since you’re visiting family, you don’t have access to your administrative workstation and diagnostic scripts. You do have access to a laptop with an internet browser. Using the laptop, you browse to the Azure portal, authenticate against your organization’s Azure subscription, open Azure Cloud Shell, mount an Azure File Share, access your diagnostic scripts, and diagnose and remediate the problems with the VM, returning it to operation.

    cyber security

  • What is Azure Cloud Shell?

    Azure Cloud Shell is a command-line environment you can access through your web browser. You can use this environment to manage Azure resources, including VMs, storage, and networking. Just like you do when using the Azure CLI or Azure PowerShell.

    Because Microsoft manages Cloud Shell, you always have access to the most recent versions of the Azure CLI and PowerShell modules right from any browser. You don’t have to worry about keeping modules up to date. With Cloud Shell, you just open your browser and sign in. Just like that, you have access to a command-line environment fully connected with your account’s permissions and the resources to which you have access. All that works in an infrastructure that’s compliant with double encryption at rest by default. You don’t need to take any further action!

    https://cosmicnext.com/crm

  • Develop an object detection client application

    After you’ve trained an object detection model, you can use the Azure AI Custom Vision SDK to develop a client application that submits new images to be analyzed.

    C#Copy

    using System;
    using System.IO;
    using Microsoft.Azure.CognitiveServices.Vision.CustomVision.Prediction;
    
    // Authenticate a client for the prediction API
    CustomVisionPredictionClient prediction_client = new CustomVisionPredictionClient(new ApiKeyServiceClientCredentials("<YOUR_PREDICTION_RESOURCE_KEY>"))
    {
        Endpoint = "<YOUR_PREDICTION_RESOURCE_ENDPOINT>"
    };
    
    // Get classification predictions for an image
    MemoryStream image_data = new MemoryStream(File.ReadAllBytes("<PATH_TO_IMAGE_FILE>"));
    var result = prediction_client.DetectImage("<YOUR_PROJECT_ID>",
                                                 "<YOUR_PUBLISHED_MODEL_NAME>",
                                                 image_data);
    
    // Process predictions
    foreach (var prediction in result.Predictions)
    {
        if (prediction.Probability > 0.5)
        {
            var left = prediction.BoundingBox.Left;
            var top = prediction.BoundingBox.Top;
            var height = prediction.BoundingBox.Height;
            var width =  prediction.BoundingBox.Width;
            Console.WriteLine($"{prediction.TagName} ({prediction.Probability})");
            Console.WriteLine($"  Left:{left}, Top:{top}, Height:{height}, Width:{width}");
        }
    }
    
    contact