Posts

  Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. -  Abigail Adams

Multivariate Linear Regression Program in Python

Image
 Multivariate Linear Regression Program in Python Here, There are many dependent variables and only one independent variable # Importing packages import pandas as pd import numpy as np import math from word2number import w2n from sklearn import linear_model # Read the csv File (Input File/Train data) df = pd . read_csv ( "D:\hiring.csv" ) df # Filling the experience column considering that experience as zero df .experience = df .experience.fillna( "zero" ) df # To fill the Test score column, we will take mean of all test_score and replace NaN with that value median_test_score = math . floor ( df [ 'test_score(out of 10)' ]. mean ()) median_test_score df [ 'test_score(out of 10)' ] = df [ 'test_score(out of 10)' ]. fillna ( median_test_score ) df # Converting the experience column from string(str) to Value(num) df .experience = df .experience.astype( str ) df .experience = df .experience.apply( w2n . word_to_num ) df # Train the...

Simple Linear Regression Program in Python

 Simple Linear Regression Program in Python Here. There is only one dependent variable and one independent variable. # Import Packages import pandas as pd import numpy as np import matplotlib . pyplot as mlt from sklearn import linear_model # Read the csv File (Input File/Train data) df = pd . read_csv ( "D:\canada_per_capita_income.csv" ) df # Plotting the data in graph %matplotlib inline mlt . xlabel ( 'Years' )     # Dependent variable mlt . ylabel ( 'Per Capita Income' )     # Independent variable mlt . scatter ( df .year, df .per_capita_income, color = 'red' , marker = '.' ) # Train the model using Linear Regression reg = linear_model . LinearRegression () reg . fit ( df [[ 'year' ]], df .per_capita_income) reg . predict ([[ 2017 ]]) # Here Years will be present in CSV file pred_df = pd . read_csv ( "D:\Years.csv" ) pred_df # Train the model future_pred = reg . predict ( pred_df ) future_pred # Output will...

Automation with Gulp Quiz

  1.  How does installing Gulp globally help? Answer: Helps to run 2.  Before installation of Gulp, installation of _____________ acts as pre-requisite Answer: node 3.  Between Grunt and Gulp, which is relatively fast? Answer: Gulp 4.  Which Streams provide ability to both read and write? Answer: Transform 5.  Streams are Asynchronous. Is this True or False? Answer: True 6.  While installing gulp, the first installation step would be __ ______. Answer: $npm install gulp g 7.  Streams which play vital role in gulp, has its origin from __ ________. Answer: Unix 8.  The default task representation in gulp will be like _________. Answer: {} 9.  Streams are represented as _________. Answer: .pipe() 10. While installing gulp with $npm install gulp --save-dev, what does --save-dev represents? Answer: .json updated 11. Which plugin notifies whenever there is any change in file? Answer: gulp-watch 12. Which command in the CLI will trigger the 'de...

Continuous Integration with Jenkins Quiz

  1. Jenkins allows you to : Answer: All of the options 2. Jabber is a : Answer: Messaging plugin 3. Project type supported by Jenkins is/are: Answer: All of the options 4. Which of the following statement is true about Jenkins? Answer: Jenkins supports plugins to showcase both metrics and trends   5. Which of the following functionality is not supported by Jenkins Answer: Code 6. Which of the following is an artifact repository that can be configured as a plugin for Jenkins Answer: Nexus 7. Jenkins can manage job dependencies using Answer: File Fingerprinting 8. Job status notifications can be sent in JSON or XML formats from Jenkins, with out extending it's functionality. Answer: False   9. Record of multiple builds is displayed using a Answer: Weather icon 10. Jenkins build job cannot be triggered manually? Answer: False   11. In the build status images, which of the following statement is correct? Answer: Partial Sun with clouds icon in the status means 20-40% of...

Continuous Integration Quiz

  1. Feature branching is used to _. Answer: Work on user stories 2. Release branches are created for resolving merge conflicts. Answer: False 3. Which is NOT a benefit of CI ? Answer: Bugs and defects no longer occur 4. Activities that are part of continuous integration. Answer: All of the Options 5. Which is not a CI practice ? Answer: Deploy to production 6. Which is NOT true about continuous integration ? Answer: Involves moving code in large amounts 7. Work Branch is also known as_. Answer: Codeline 8. Git is a _ version control system. Answer: Distributed 9. Time taken to fix a broken build is measured using __. Answer: Build repair rate 10. __ is a .Net build tool. Answer: NAnt 11. Pipeline break and build break is one and the same. Answer: False 12. Capablility of your build system to handle an increase in the amount of code that it integrates and analyzes is known as . Answer: Build scalability 13. Complexity of a code is determined based on ___. Answer: Cyclomatic Complex...

Advanced Probability Quiz

  1. Multivariate data analysis helps us to__   Answer: both 2. What is multivariate statistics?   Answer: All options 3. Multivariate data analysis is application of__ Answer: All options 4. Use of only one variable to describe the data is known as__ Answer: Uni 5. What are the features of multivariate random variable? Answer: both 6. Independent variables refers to those variables__   Answer: which act as 7. __ is an example of Multivariate analysis in which relationship exist between a dependent variable and independent variable/s. Answer: partial least 8. Pattern such as group or trend in the data table can not be studied using Multivariate data analysis. Answer: Incorrect 9. Dependent variables refer to those variables__   Answer: variation is analyzed 10. Lurking variable remains__ Answer: Hidden 11. Amalgamation paradox is also known as__   Answer: Simpson's 12. Principal component analysis reduces__   Answer: large no of correlated ...

DevOps Culture Quiz

  1. Understanding of what we are deploying and how we are deploying comes under which habit of DevOps Answer: Configuration Management 2. __ __________ is the primary measure of progress according to Agile Manifesto. Answer: Working Software 3. DevOps encompasses _ Answer: Automation 4. DevOps is the union of ___ , __ __ and __ to enable continuous delivery of value to end users. Answer: People, Processes and Products. 5. Improve quality and performance of the applications is a major driver for switching to DevOps Answer: True 6. Which of the following is a value of DevOps Answer: DevOps goals span the entire delivery pipeline 7. DevOps encompasses culture and collaboration Answer: True 8. Product Management is one of the 7 DevOps practices Answer: False 9. Which of the following can slow down your ability to deliver code effectively ? Answer: Technical Debt 10. What is the desire in the organization to push things to production termed as ? Answer: Live Site Culture 11. ...