This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model = Network() | |
model.double() | |
model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
K = 10 # Number of latent features | |
N = len(set(df.userId.values)) # Number of users | |
M = len(set(df.movieId.values)) # Number of movies | |
from torch import nn | |
import torch | |
import torch.nn.functional as F | |
class Network(nn.Module): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
var cheerio = require('cheerio'); | |
request('https://www.reddit.com/', function (error, response, body) { | |
$ = cheerio.load(body); | |
$('a.title').each(function (i, elem) { | |
console.log(''); | |
console.log('** Link ** ') | |
console.log($(this).text()); |
NewerOlder