- Create a New Virtual Environment
conda create --name project1 python=3.5.7 pip numpy
- Activate a particular environment
activate project1
| import pandas as pd | |
| def convert_to_lime_format(X, categorical_names, col_names=None, invert=False): | |
| """Converts data with categorical values as string into the right format | |
| for LIME, with categorical values as integers labels. | |
| It takes categorical_names, the same dictionary that has to be passed | |
| to LIME to ensure consistency. |
| var express = require('express'); | |
| var app = express(); | |
| app.get('/', function (req, res) { | |
| res.send('Hello World!'); | |
| }); | |
| app.listen(3000, function () { | |
| console.log('Server running on port 3000'); | |
| }); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css" /> | |
| <title>Document</title> | |
| </head> | |
| <body> |
| const express = require('express'); | |
| const passport = require('passport'); | |
| const GoogleStrategy = require('passport-google-oauth20').Strategy; | |
| const keys = require('./config/keys'); | |
| const app = express(); | |
| passport.use(new GoogleStrategy({ | |
| clientID : keys.googleClientID, | |
| clientSecret : keys.googleClientSecret, |
| import React from 'react'; | |
| import { View } from 'react-native'; | |
| const CardSection = (props) => { | |
| return( | |
| <View style={styles.containerStyle}> | |
| {props.children} | |
| </View> | |
| ); | |
| } |
| import React from 'react'; | |
| import { View,Text } from 'react-native'; | |
| const Card = (props) => { | |
| return ( | |
| <View style={styles.containerStyle}> | |
| {props.children} | |
| </View> | |
| ); | |
| } |