turicreate | Turi Create simplifies the development of custom machine | Machine Learning library

 by   apple C++ Version: 6.4.1 License: BSD-3-Clause

kandi X-RAY | turicreate Summary

kandi X-RAY | turicreate Summary

turicreate is a C++ library typically used in Artificial Intelligence, Machine Learning applications. turicreate has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Quick Links: Installation | Documentation | WWDC 2019 | WWDC 2018.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              turicreate has a medium active ecosystem.
              It has 11016 star(s) with 1157 fork(s). There are 348 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 494 open issues and 1294 have been closed. On average issues are closed in 74 days. There are 19 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of turicreate is 6.4.1

            kandi-Quality Quality

              turicreate has no bugs reported.

            kandi-Security Security

              turicreate has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              turicreate is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              turicreate releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of turicreate
            Get all kandi verified functions for this library.

            turicreate Key Features

            No Key Features are available at this moment for turicreate.

            turicreate Examples and Code Snippets

            Turi Create-Example: Image classifier with a few lines of code
            C++dot img1Lines of Code : 13dot img1License : Permissive (BSD-3-Clause)
            copy iconCopy
            import turicreate as tc
            
            # Load data 
            data = tc.SFrame('photoLabel.sframe')
            
            # Create a model
            model = tc.image_classifier.create(data, target='photoLabel')
            
            # Make predictions
            predictions = model.predict(data)
            
            # Export to Core ML
            model.export_coreml  
            Turi Create-Installation
            C++dot img2Lines of Code : 10dot img2License : Permissive (BSD-3-Clause)
            copy iconCopy
            pip install virtualenv
            
            # Create a Python virtual environment
            cd ~
            virtualenv venv
            
            # Activate your virtual environment
            source ~/venv/bin/activate
            
            conda create -n virtual_environment_name anaconda
            conda activate virtual_environment_name
            
            (venv) pip   
            Training with GPU an object detection model on colab with Turicreate
            Pythondot img3Lines of Code : 5dot img3License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            !pip uninstall -y tensorflow
            !pip uninstall -y tensorflow-gpu
            !pip install turicreate
            !pip install tensorflow==2.4.0
            
            Pandas concat function timing out when combining large dataframes
            Pythondot img4Lines of Code : 11dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            pip install -U turicreate
            
            import pandas as pd
            df = pd.read_csv(...)
            
            import turicreate as tc
            sf1 = tc.SFrame.read_csv(...)
            sf2 = tc.SFrame.read_csv(...)
            
            new_sf = sf1
            NameError: name 'print_rows' is not defined
            Pythondot img5Lines of Code : 2dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            (metrics['confusion_matrix']).print_rows(num_rows=100)
            
            error while installing turicreate ...while building wheel for llvmlite
            Pythondot img6Lines of Code : 2dot img6License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            pip install 'scipy==1.2.2'
            
            KeyError: "The following 'id_vars' are not present in the DataFrame
            Pythondot img7Lines of Code : 7dot img7License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            customers = pd.read_csv('testdata/data/recommend_1.csv')
            transactions = pd.read_csv('testdata/data/trx_data.csv')
            transactions['products'] = transactions['products'].apply(lambda x: x.split('|'))
            transactions = transactions['products'].app
            tensorflow error when installing turicreate?
            Pythondot img8Lines of Code : 10dot img8License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            Could not find a version that satisfies the requirement tensorflow>=2.0.0 (from turicreate) (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0
            Flask AssertionError While Trying to "POST"
            Pythondot img9Lines of Code : 4dot img9License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            model = tc.image_classifier.create(...)
            
            "dataset" must be of type SFrame. 
            
            Unable to install turicreate in anaconda
            Pythondot img10Lines of Code : 3dot img10License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            conda activate my_env
            pip install turicreate
            

            Community Discussions

            QUESTION

            Training with GPU an object detection model on colab with Turicreate
            Asked 2021-Sep-02 at 08:55

            It's days that I'm trying to train an object detection model on Google Colab using GPU with TuriCreate.

            According to the TuriCreate's repository, to use gpu during training you must follow these instructions:

            https://github.com/apple/turicreate/blob/main/LinuxGPU.md

            However, everytime I start the training, the shell produces this output before starting the training:

            ...

            ANSWER

            Answered 2021-Sep-02 at 08:55

            I managed to solve this: the problem is due to the version of tensorflow pre-installed on the colab machine.

            Source https://stackoverflow.com/questions/68957000

            QUESTION

            Usage of turicreate.text_analytics.count_words
            Asked 2021-Jan-31 at 19:29

            I am currently learning classification using turicreate and have a question regarding the word count vector.

            Using the example that I found here

            ...

            ANSWER

            Answered 2021-Jan-31 at 19:29

            thanks for the direct question. I am here after I received your email. I think the two questions that you raised are somewhat similar and can be answered through each other. Basically, your question is why do we need word count vector while conducting sentiment analysis.

            In all honesty, this is actually a long answer but I will try to make it as concise as possible. I am not aware of your level of NLP understanding at the moment but all machine learning models are only built for numerical values which means when you are working with text data, you first need to convert the text into a numerical format. This process is known as vectorization. That is essentially what we are doing here but there are many ways of achieving that. The vectorizer that is being used here is a CountVectorizer where each word in the counts dictionary is treated as a separate feature for that particular sentence. This leads to the creation of a sparse matrix which can represent m sentences with n unique words as a m x n matrix.

            The way we're going about it is that we count the number of times a word occurs a particular type of sentence (either positive or negative). It is understandable that words like terrible might have a very high count in negative sentences and almost 0 counts in positive sentences. Similarly, there will be a reverse effect for words like 'great' and 'amazing'. This is what is used in classifiers to allot weights to each word. Negative weights to words occurring popularly in negative classes and positive weights to words occurring in positive classes. This is what sentiment analysis classification is based on.

            This might be a really helpful resource. You can also read through this.

            PS: I wouldn't recommend using TuriCreate before you have either coded this from scratch to understand how it works or used scikit-learn because TuriCreate abstracts a lot of the usage and you might not understand what is happening in the background.

            Source https://stackoverflow.com/questions/65981906

            QUESTION

            CountVectorizer fails with bad words
            Asked 2020-Oct-20 at 08:15

            I am using a pandas dataFrame and I am trying to get the number of occurrences of words for a specific column that has strings. The code runs well until some row with the following error

            ...

            ANSWER

            Answered 2020-Oct-20 at 08:15

            The issue you're running into is with tokenization pattern, specified in token_pattern='(?u)\\b\\w\\w+\\b'. You may adapt it to your task:

            Source https://stackoverflow.com/questions/64437517

            QUESTION

            How to use turicreate in Anaconda navigator
            Asked 2020-Aug-03 at 22:43

            I created a new conda environment and installed turicreate. How can I start anaconda navigator within this new environment? Currently I start navigator from the base environment and then switch to the new environment. When I do this, I can see turicreate is listed as an installed package, but when I import it, I get a modulenotfound error.

            ...

            ANSWER

            Answered 2020-Aug-03 at 22:43

            Creating new environment with a version of python (3.7) compatible with Turicreate solved this problem..

            Source https://stackoverflow.com/questions/62906612

            QUESTION

            Confused with setting up ML and DL on GPU
            Asked 2020-Jun-14 at 21:47

            My goal is to set up my PC for machine and deep learning through my GPU. I've read about all the different components however I can not connect the dots for what I need to do.

            • OS: Ubuntu 20.04
            • GPU: Nvidia RTX 2070 Super
            • Anaconda: 4.8.3

            I've installed the nvidia-cuda-toolkit (10.1.243), but now what?

            • How does this integrate with jupyter notebook?
            • The 3 python modules I want to work with are:
              • turicreate - I've gotten this to run off CPU but not GPU
              • scikit-learn
              • tensorflow
              • matlab

            I know cuDNN and pyCUDA fit in there somewhere.

            Any help is appreciated. Thanks

            ...

            ANSWER

            Answered 2020-Jun-14 at 21:47

            First of all - I have the experience limited to ubuntu 18.04 and 16.xx and python DL frameworks. But I hope some sugestions will be helpfull.

            • If I were familiar with docker I would rather consider to use docker instead of setting-up everything from scratch. This approach is described in section about tensorflow container
            • If you decided to setup all components yourself please see this guideline I used some contents from it for 18.04, succesfully.
            • be carefull with automatic updates. After the configuration is finished and tested protect it from being overwritten with newest version of CUDAor TensorRT.

            Answering one of your sub-questions - How does this integrate with jupyter notebook? - it does not, becuase it is unneccesary. CUDA library cooperates with a framework such as Tensorflow, not with the Jupyter. Jupyter is just an editor and execution controller on the server side.

            Source https://stackoverflow.com/questions/62365784

            QUESTION

            How can I effectively downgrade python in Linux?
            Asked 2020-May-23 at 14:05

            I wanted to use turicreate library which doesn't support python 3.8 yet. So tried downgrading python to 3.7 using

            ...

            ANSWER

            Answered 2020-May-22 at 07:54

            Instead of downgrading python for the whole OS, may be you should try using a downgraded python version for just your project.

            Try using a virtual environment and use it to create a dev environment with python 3.7.

            Source https://stackoverflow.com/questions/61950183

            QUESTION

            turicreate visualizing decision tree
            Asked 2020-May-05 at 08:50

            Having performed this in turicreate in jupyter noteboopk:

            ...

            ANSWER

            Answered 2020-May-05 at 08:50

            Not possible. You need to write a python routine to print the decision tree in an awkward manner.

            Source https://stackoverflow.com/questions/61573997

            QUESTION

            Any ideas on why my coreml model created with turicreate isn't working?
            Asked 2020-Mar-06 at 20:49

            Pretty much brand new to ML here. I'm trying to create a hand-detection CoreML model using turicreate.

            The dataset I'm using is from https://github.com/aurooj/Hand-Segmentation-in-the-Wild , which provides images of hands from an egocentric perspective, along with masks for the images. I'm following the steps in turicreate's "Data Preparation" (https://github.com/apple/turicreate/blob/master/userguide/object_detection/data-preparation.md) step-by-step to create the SFrame. Checking the contents of the variables throughout this process, there doesn't appear to be anything wrong.

            Following data preparation, I follow the steps in the "Introductory Example" section of https://github.com/apple/turicreate/tree/master/userguide/object_detection

            I get the hint of an error when turicreate is performing iterations to create the model. There doesn't appear to be any Loss at all, which doesn't seem right.

            After the model is created, I try to test it with a test_data portion of the SFrame. The results of these predictions are just empty arrays though, which is obviously not right.

            After exporting the model as a CoreML .mlmodel and trying it out in an app, it is unable to recognize anything (not surprisingly).

            Me being completely new to model creation, I can't figure out what might be wrong. The dataset seems quite accurate to me. The only changes I made to the dataset were that some of the masks didn't have explicit file extensions (they are PNGs), so I added the .png extension. I also renamed the images to follow turicreate's tutorial formats (i.e. vid4frame025.image.png and vid4frame025.mask.0.png. Again, the SFrame creation process using this data seems correct at each step. I was able to follow the process with turicreate's tutorial dataset (bikes and cars) successfully. Any ideas on what might be going wrong?

            ...

            ANSWER

            Answered 2020-Mar-06 at 20:49

            I found the problem, and it basically stemmed from my unfamiliarity with Python.

            In one part of the Data Preparation section, after creating bounding boxes out of the mask images, each annotation is assigned a 'label' indicating the type of object the annotation is meant to be. My data had a different name format than the tutorial's data, so rather than each annotation having 'label': 'bike', my annotations had 'label': 'vid4frame25`, 'label': 'vid4frame26', etc.

            Correcting this such that each annotation has 'label': 'hand' seems to have corrected this (or at least it's creating a legitimate-seeming model so far).

            Source https://stackoverflow.com/questions/60569976

            QUESTION

            Flask AssertionError While Trying to "POST"
            Asked 2020-Jan-03 at 20:59

            I am brand new to python as of about 3 days ago and I need to build a prototype python server for an iOS work project. I followed a tutorial for the initial build.

            When I perform a "POST" request, I get an error. Here is my full code, followed by the error I'm receiving in the Terminal when a "POST" request is submitted.

            PS. also fairly new to stack overflow so I'm sorry if I'm asking this question incorrectly

            ...

            ANSWER

            Answered 2020-Jan-03 at 20:59

            Error shows in which line it has problem

            Source https://stackoverflow.com/questions/59584220

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install turicreate

            For detailed instructions for different varieties of Linux see LINUX_INSTALL.md. For common installation issues see INSTALL_ISSUES.md. We recommend using virtualenv to use, install, or build Turi Create.

            Support

            macOS 10.12+Linux (with glibc 2.10+)Windows 10 (via WSL)
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install turicreate

          • CLONE
          • HTTPS

            https://github.com/apple/turicreate.git

          • CLI

            gh repo clone apple/turicreate

          • sshUrl

            git@github.com:apple/turicreate.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link