Saturday, January 30, 2016

Easy way to fix error 3194 in iTunes when you restore or update iPhone6 or iPad

Easy way to fix error 3194 in iTunes when you restore or update iPhone6 or iPad
previous post - XGBoost in R

Recently I gifted iPhone6s which was used by my brother. I thought it would be better to factory restore before I start using. When I do so, I got 3194 error

simple way to fix error 3194 in iTunes when you restore or update iPhone
the iphone "iphone" could not be restored unknown error (3194) occurred

Solution

if you get this error in your iTunes, DO this and try again

1) Check your iTunes version. make sure you are using latest versions of iTunes

2) Disable firewall or Anti virus security software for at-least 10 min


hope now you will get the things done. if not do one more step

3) check the system "host" file
    i) Open host file in C:\Windows\System32\Drivers\etc with administrator privilege

    ii) Find any entries like "gs.apple.com" (example 38.25.63.10 gs.apple.com) and remove the line / comment the line by adding # in front of the line

    iii) Restart the system.


In most cases you will get resolved by doing first two steps.

Wednesday, January 13, 2016

XGBoost in R. Error in xgb.DMatrix and can not open file -unknown- and Error in xgb.DMatrix

XGBoost in R. Error in xgb.DMatrix and can not open file -unknown- and Error in xgb.DMatrix

XGBoost in R

Preparing data model for XGBoost
Error in xgb.DMatrix(data, label = label) : can not open file "-unknown-"

Solution

Check if your data has character or factor variables and try to convert them to numerical.

str(Data)

Predict using XGBoost model
red <- predict(bst, xTest)

Error in xgb.DMatrix(newdata) : xgb.DMatrix: does not support to construct from list

Solution

convert the test data into matrix type which is accpected by xgboost

pred <- predict(bst, as.matrix(xTest))

dummyVars function allows us to create dummy variables
in other words it translates text data into numerical data

dummyVars("~ gender", data = df_all)

Error: could not find function "dummyVars"

Solution


library(caret)

Related posts :

XGBoost in R : Error in xgb.iter.update

code of conduct : Top 9 Rule of Data Science Professional