User Profile

Collapse

Profile Sidebar

Collapse
vokoyo
vokoyo
Last Activity: Apr 4 '19, 01:46 PM
Joined: Apr 20 '18
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to correct the NameError: name 'xx' is not defined?






    May I know how to correct the NameError: name 'xx' is not defined ?







    Code:
    import numpy as np
    import matplotlib.pyplot as plt
    from sklearn import svm, datasets
    # import some data to play with
    iris = datasets.load_iris()
    X = iris.data[:,[2,3]]
    y = iris.target
    
    def plotSVC(title):
    # create a
    ...
    See more | Go to post

  • vokoyo
    replied to Why I get the X_train_std is not defined




    Look carefully -





    from sklearn.model_s election import train_test_spli t






    See more | Go to post

    Leave a comment:


  • vokoyo
    started a topic Why I get the X_train_std is not defined

    Why I get the X_train_std is not defined

    May I know why I get the error message -

    NameError: name 'X_train_std' is not defined






    Code:
    from sklearn.linear_model import LogisticRegression
    
    lr = LogisticRegression(C=1000.0, random_state=0)
    lr.fit(X_train_std, y_train)
     
    plot_decision_regions(X_combined_std,
                          y_combined, classifier=lr,
    ...
    See more | Go to post

  • vokoyo
    started a topic How To Modify Adaline Stochastic Gradient Descent

    How To Modify Adaline Stochastic Gradient Descent






    Dear


    May I know how to modify my own Python programming so that I will get the same picture as refer to the attached file - Adaline Stochastic gradient descent

    (I am using the Anaconda Python 3.7)

    Prayerfully

    Tron Orino Yeong
    tcynotebook@yah oo.com
    0916643858








    ...
    See more | Go to post

  • I get some errors for my coding sample as below -



    #include <stdio.h>
    #include <stdlib.h>
    #include <cuda_runtime.h >
    #include <time.h>
    #include <math.h>

    #define DATA_SIZE 1048576
    #define BLOCK_NUM 32
    #define THREAD_NUM 256

    int data[DATA_SIZE];

    bool InitCUDA()
    {
    int count;

    cudaGetDeviceCo unt(&count);...
    See more | Go to post

    Leave a comment:


  • My own coding sample however have some errors -

    #include <stdio.h>
    #include <stdlib.h>
    #include <cuda_runtime.h >
    #include <time.h>
    #include <math.h>

    int main()
    {
    float *a, *b, *c, *d;
    int n = 1000;

    if (!InitCUDA())
    return 0;
    a = (float*)malloc( sizeof(float)* n * n);
    b = (float*)malloc( sizeof(float)* n * n);
    ...
    See more | Go to post

    Leave a comment:


  • How to use CUDA programming to calculate and process the correct number

    Bandwidth test - test memory bandwidth.

    Especially important for PCIE capability. Different MB has different PCIE capability.

    The CUDA adaptor performance is depend on the capability of PCIE. It could be the performance bottleneck.

    On the following programming drills, the number of clock cycles necessary for computation and utilised memory bandwidth have to be computing.

    (1) parallelization in the...
    See more | Go to post
No activity results to display
Show More
Working...