This file contains hidden or 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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <string> | |
template<typename T, typename BinOp> | |
class lazy_segtree { | |
struct node{ | |
int l, r; | |
T val; |
This file contains hidden or 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
from sklearn.preprocessing import PolynomialFeatures | |
from sklearn.linear_model import LinearRegression, Lasso, Ridge | |
from sklearn.pipeline import Pipeline | |
import numpy as np | |
import matplotlib.pyplot as plt | |
def f(x): | |
return 2 + 3*x - x**2 | |
X = (np.random.rand(50) * 10 - 5) |
This file contains hidden or 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
from sklearn.preprocessing import PolynomialFeatures | |
from sklearn.linear_model import LinearRegression, Lasso, Ridge | |
from sklearn.pipeline import Pipeline | |
import numpy as np | |
import matplotlib.pyplot as plt | |
def f(x): | |
return 2 + 3*x - x**2 | |
X = (np.random.rand(80) * 10 - 5) |
This file contains hidden or 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
from sklearn.preprocessing import PolynomialFeatures | |
from sklearn.linear_model import LinearRegression, Lasso | |
from sklearn.pipeline import Pipeline | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import scipy.stats | |
modelF = lambda deg: Pipeline([ | |
('poly', PolynomialFeatures(degree=deg)), | |
('linear', LinearRegression(fit_intercept=False))]) |
This file contains hidden or 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
from sklearn.preprocessing import PolynomialFeatures | |
from sklearn.linear_model import LinearRegression, Lasso | |
from sklearn.pipeline import Pipeline | |
import numpy as np | |
import matplotlib.pyplot as plt | |
modelF = lambda deg: Pipeline([ | |
('poly', PolynomialFeatures(degree=deg)), | |
('linear', LinearRegression(fit_intercept=False))]) |
This file contains hidden or 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
import com.intellij.openapi.project.Project | |
import com.intellij.openapi.wm.ToolWindow | |
import com.intellij.openapi.wm.ToolWindowFactory | |
import java.awt.* | |
import javax.swing.JComponent | |
import javax.swing.JLabel | |
import javax.swing.JPanel | |
import javax.swing.JTextField | |
class HogeWindow: ToolWindowFactory { |
This file contains hidden or 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
WHY??? Warum nicht??? | |
tried to access class twitter4j.StreamListener from class StreamTask | |
java.lang.IllegalAccessError: tried to access class twitter4j.StreamListener from class StreamTask | |
at StreamTask.run(StreamTask.kt:34) | |
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563) | |
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142) | |
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446) | |
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392) | |
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/url" | |
"os" | |
"github.com/ChimeraCoder/anaconda" | |
"github.com/deckarep/golang-set" |
This file contains hidden or 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
package main | |
import ( | |
"log" | |
"net/url" | |
"os" | |
"time" | |
"github.com/ChimeraCoder/anaconda" | |
"github.com/joho/godotenv" |
This file contains hidden or 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
#include <iostream> | |
#include <vector> | |
#include <map> | |
#include <set> | |
#include <unordered_map> | |
#include <unordered_set> | |
#include <algorithm> | |
#include <limits> | |
#include <functional> | |
#include <queue> |